Skip to content

Per-profile tool_response_limit for clients that parse whole results #2027

Done

Description

@APKiwi

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.

Activity

  1. added a commit that references this issue on Nov 24, 2026
    ff076fc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions