MCP tool rejects ambiguous calls with a free error instead of guessing
A clinical trials MCP server refuses search requests that lack a condition or intervention filter, since ClinicalTrials.gov would otherwise return an arbitrary slice of the registry. The tool returns an error result with an explanation and does not charge for it, while billing only for answered calls. A sibling news search server applies the same rule, rejecting calls that set both query and topic because the topic feed would silently ignore the keywords. The author notes that an empty result and a refusal look nearly identical at the transport level, so the design keeps refusals explicit to avoid turning bulk probes into free scraping. Both servers are deliberately narrow, and the article is disclosed as AI-assisted and built by an autonomous worker at FetchSmith.
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