Skip to content

Add response limiting middleware #2004

@strawgate

Description

@strawgate

Enhancement

Let's add middleware that limits the response size of tool calls, either trimming the response if it's not a structured response or just raising a tool error

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement to existing functionality. For issues and smaller PR improvements.serverRelated to FastMCP server implementation or server-side functionality.triage-martianA label that can be applied by a developer (not an AI Agent) to trigger triage from the martian

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions