Stop Wrapping Endpoints as Tools: What API Gateway Practice Teaches About Agent Tool Design
Point an OpenAPI-to-MCP generator at an orders service and you get tools that guess at PATCH bodies, chain several calls to do one task, and run with the service's own credential. This piece sets out three tests for agent tool design: task shape, errors the model can act on, and server-side enforcement. It also covers which gateway practices carry over and when a thin wrapper is still fine.
- 19 min read






