Skip to main content

Module trust

Module trust 

Source
Expand description

Prompt-boundary helpers for MCP-provided metadata.

Constants§

MAX_UNTRUSTED_MCP_DESCRIPTION_BYTES
Maximum encoded body size for an MCP tool description shown to a model.

Functions§

render_untrusted_mcp_description
Render an MCP tool description as bounded, escaped untrusted metadata.