Oriel — AI & technology worth noticing, every day.

Your MCP tool is an API for an unreliable caller

Web page · https://shubhkumar.in/blogs/narrow-loud-mcp-tools

Five named tools with typed inputs and stable error codes beat one ledger_admin tool hiding twelve actions.

First seen by Oriel on .

AI summary

This design guide argues that MCP tools should be narrow, typed, bounded, retry-safe, and server-authorized because language-model callers are capable but unreliable.

  • Replace a ledger_admin(action, payload) tool hiding twelve actions with five named tools such as get_invoice and send_refund.
  • Use typed schemas, explicit units like amountMinor and currency, bounded inputs, compact outputs, and stable corrective error codes.
  • Make writes retry-safe with idempotency keys, and protect irreversible actions through expiring, single-use preview digests.
  • Derive tenant and user identity from the authenticated session rather than trusting model-supplied arguments; annotations are advisory, not security controls.
  • The five-tool design is a sketch, not a benchmark, and the author measured neither token usage, latency, nor model accuracy.

#model context protocol #api design #agent safety #authorization

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Reactions

Total public reactions reported by the source; distinct from points and likes.

  • DEV Community: 16, latest observation ; +6 over observed period since

Comments

Comment count reported by the source.

  • DEV Community: 86, latest observation ; +60 over observed period since

Aliases

SourceExternal IDURL
DEV Community5140206https://shubhkumar.in/blogs/narrow-loud-mcp-tools?utm_source=dev_to Read discussion