Repository navigation
docs(mcp): describe tool costs, spending limits, argument formats, and negative guidance - #445
Conversation
…d negative guidance Tool descriptions previously omitted costs, spending limits, argument formats, and guidance on when not to call each tool. Rewrite tool descriptions for bazaar_search and paid_call to explicitly state: - Purpose, preconditions, and cost (free vs real cryptographic funds) - Per-call spending limit (.00 USD via MCP_MAX_PAYMENT_PRICE) on paid_call - Permitted host allow-list restriction for paid endpoints - Explicit 'When NOT to use' boundaries to avoid redundant agent loops - Explicit argument schema descriptions and expected format constraints Closes Divinity-Labs#424
|
@rupesh-kumar-sah Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
Merged to The premise is right and worth stating: a model picks a tool from its description alone, so "this one is free, that one spends real funds, and here is the other one to use instead" is exactly the text that stops a free lookup being issued as a payment. What I couldn't take. #521 replaced the hand-written JSON input schemas with ones derived from the Zod definitions (
That's prompt-injection defence written where the model will actually read it. Your cost framing now sits in front of it: real funds, a funded signer with trustlines, not for free discovery.
Your test couldn't survive the resolution — it asserted exact phrasing ( One thing to know for your next MCP PR: Lens: 120 files, 1,446 tests passing, typecheck clean. |
Summary
Tool descriptions previously omitted costs, spending limits, argument formats, and guidance on when not to call each tool.
This PR rewrites tool descriptions and schemas for
bazaar_searchandpaid_callto explicitly state:MCP_MAX_PAYMENT_PRICE) onpaid_callChanges
bazaar_searchdescription and argument schemas (url,query) insrc/mcp/server.ts.paid_calldescription and argument schemas (url,method) insrc/mcp/server.ts.tests/mcp.test.tsfor tool descriptions and schema formatting.Closes #424