JMESPath Pruning
HasMCP integrates the JMESPath query engine directly into the routing middleware of every Provider Tool and Resource dynamically. Whenever a tool executes, the external API server returns a raw payload. Instead of returning that massive payload back to the originating MCP Client, HasMCP temporarily buffers the JSON response natively. The platform then executes your predefined JMESPath query string against the bufferedJSON securely.
Example Pruning Flow
Assume a provider API returns this large payload structurally:users[*].{name: first_name}
The LLM exclusively receives: