mcpproxy-go icon indicating copy to clipboard operation
mcpproxy-go copied to clipboard

Per-profile tool_response_limit for clients that parse whole results

Open APKiwi opened this issue 1 week ago • 0 comments

Since 0.75.0 (#1937) tool_response_limit also bounds structuredContent. Right for agents, but it breaks a local script that parses the JSON itself.

Our script calls a Work IQ fetch Graph batch and a ticket list through call_tool_read. Both return 50,000 to 270,000 characters of structuredContent, which arrived whole on 0.74.0 and now arrive cut.

read_cache can't rebuild them. It pages one record array, so sibling fields such as @odata.nextLink are lost, and a record over the limit, such as a whole Graph collection, can't be paged.

/mcp/s/<server> doesn't help because neither tool lists an outputSchema, and mcpproxy call tool-read cuts too.

Could a profile override the limit, for example profiles[].tool_response_limit with 0 for unlimited? The script then gets its own read-only profile with whole answers, and chats keep the default bound. Let me know if a PR would help.

APKiwi avatar Nov 24 '26 08:11 APKiwi