Optimize MCP tool docstrings for token efficiency#394
Open
QuentinAmbard wants to merge 2 commits intomainfrom
Open
Optimize MCP tool docstrings for token efficiency#394QuentinAmbard wants to merge 2 commits intomainfrom
QuentinAmbard wants to merge 2 commits intomainfrom
Conversation
- Reduce docstring verbosity across all 18 tool files (~89% reduction) - Keep all functional information while being concise - Add skill references to complex tools (dashboards, vector search, genie, jobs, pipelines, lakebase, unity catalog, serving, apps, agent bricks) - Maintain human readability with bullet points and structure - Preserve critical warnings (ASK USER FIRST, CONFIRM WITH USER) - Keep return format hints for AI parsing Net reduction: 1,843 lines across 18 files 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- agent_bricks.py: Add context for description, instructions, volume_path, examples - genie.py: Add context for table_identifiers, description, sample_questions, serialized_space - jobs.py: Add context for tasks, job_clusters, environments, schedule, git_source - lakebase.py: Add context for source_branch, ttl_seconds, is_protected, autoscaling params, and sync source/target table names - pipelines.py: Add context for root_path, workspace_file_paths, extra_settings, full_refresh 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Token Reduction
Net reduction: 1,843 lines removed (~89% reduction in documentation size)
Skill References Added
Complex tools now reference their corresponding skills for detailed documentation:
databricks-aibi-dashboards- widget JSON structures, filter typesdatabricks-vector-search- index spec details (delta_sync, direct_access)agent-bricks- KA/MAS configurationdatabricks-genie- Genie space setupdatabricks-jobs- task configuration detailsdatabricks-spark-declarative-pipelines- pipeline setupdatabricks-lakebase-provisioned/autoscale- database typesdatabricks-unity-catalog- UC guidancedatabricks-model-serving- endpoint configurationdatabricks-app-python- app developmentTest plan
🤖 Generated with Claude Code