Skip to content

Improve tool descriptions & schema param docs - #20

Merged
szhygulin merged 1 commit into
mainfrom
improve/tool-descriptions
Apr 14, 2026
Merged

Improve tool descriptions & schema param docs#20
szhygulin merged 1 commit into
mainfrom
improve/tool-descriptions

Conversation

@szhygulin

Copy link
Copy Markdown
Collaborator

Summary

Glama's tool-score rubric grades each tool's description + schema-parameter documentation. Our lowest-scoring tools (B, ~3.1-3.4) had bare schema fields with no .describe() and thin tool-level descriptions.

  • Add .describe() to every schema field in staking, portfolio, compound, and morpho schemas — wallets, chains, markets, periods, protocols, market ids.
  • Expand tool descriptions for estimate_staking_yield, get_portfolio_summary, get_compound_positions, prepare_compound_borrow, prepare_morpho_supply, prepare_morpho_withdraw_collateral to cover: when to use, return shape, and key constraints (e.g. max not supported for morpho withdrawCollateral).

No runtime/API behavior changes — only metadata surfaced to MCP clients.

Test plan

  • npm run build passes
  • npm test — all 235 tests pass
  • After merge + release, re-run Glama score eval and confirm affected tools move toward A

Targets the tools Glama scored lowest (B, ~3.1-3.4): added .describe()
to every schema field in staking, portfolio, compound, and morpho
modules, and expanded tool-level descriptions to cover when to use
the tool, the return shape, and key constraints.

Affected: estimate_staking_yield, get_portfolio_summary,
get_compound_positions, prepare_compound_borrow, prepare_morpho_supply,
prepare_morpho_withdraw_collateral.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@szhygulin
szhygulin merged commit 617e19a into main Apr 14, 2026
2 checks passed
@szhygulin
szhygulin deleted the improve/tool-descriptions branch April 25, 2026 02:15
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