logoalt Hacker News

jhurlimanlast Sunday at 2:24 AM2 repliesview on HN

One thing I don’t cover in the blog post is ensuring your MCP tool calls are well documented. (If it’s an existing MCP you can do this with a README or instructions file.) I saw a jump in efficiency when I manually edited the docstrings with examples of when each tool would be used, how to call it, and better argument descriptions.


Replies

jphorismlast Sunday at 5:10 AM

That's cool! Have you thought about some docstring augmentation loop -- either by having the agent log the tool uses or by auto querying (e.g. perplexity API) for example use cases in the wild?

kwctolast Sunday at 3:53 AM

Would be forever grateful for a repo to learn from, even if its rough.

show 1 reply