Skip to content

Extract shared split tool input schema#161

Merged
AadilLatif merged 1 commit intomainfrom
feature/jupyter-book-v2-upgrade
Mar 23, 2026
Merged

Extract shared split tool input schema#161
AadilLatif merged 1 commit intomainfrom
feature/jupyter-book-v2-upgrade

Conversation

@AadilLatif
Copy link
Copy Markdown
Collaborator

@AadilLatif AadilLatif commented Mar 23, 2026

Add a helper _split_tool_input_schema() in src/gdm/mcp/server.py that returns the common JSON input schema for split tools (properties: system_path, model_ref, output_dir, keep_timeseries, include_unassigned; output_dir required; either system_path or model_ref required). Replace the duplicated inline inputSchema for split_by_substation and split_by_feeder with a call to this helper to reduce duplication and centralize schema maintenance.

Change Summary

Related issue number

Checklist

  • The pull request title is a good summary of the changes.
  • Tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including "please review" to assign reviewers

Add a helper _split_tool_input_schema() in src/gdm/mcp/server.py that returns the common JSON input schema for split tools (properties: system_path, model_ref, output_dir, keep_timeseries, include_unassigned; output_dir required; either system_path or model_ref required). Replace the duplicated inline inputSchema for split_by_substation and split_by_feeder with a call to this helper to reduce duplication and centralize schema maintenance.
@AadilLatif AadilLatif merged commit 8d1896a into main Mar 23, 2026
4 checks passed
@AadilLatif AadilLatif deleted the feature/jupyter-book-v2-upgrade branch March 23, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant