Richer Tool Docstrings Did Not Change Which Tool an Agent Picked
A developer questioned whether writing more detailed docstrings improves how AI agents choose MCP tools, a point often assumed but rarely tested. They ran a small experiment on their own eight-tool server for GitHub and DEV.to, using terse one-line docstrings with no examples or disambiguation hints. Across three ambiguous requests tested five times each with a Sonnet model, the model picked the correct tool all 15 times. The author had expected at least one wrong pick that a docstring fix would address, so the outcome ran contrary to their hypothesis. The test used plain-text signatures rather than the live MCP transport, which the sandbox could not run.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in