Documentation Index
Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
Use this file to discover all available pages before exploring further.
Why
- An MCP server tool call may return a large amount of data, which can quickly fill the available context window.
- The agent may not be able to control how much data an MCP server returns in a tool response by modifying the tool arguments alone. For example, fetching a single pull request can still return a very large
descriptionfield.
How it works
Configuration
TrueFoundry Agent Harness applies offloading automatically — no setup required. Two complementary thresholds govern when tool responses are written to the sandbox instead of staying in context. Single tool response that’s too large If an individual tool response exceeds the per-call threshold, the full result is written to a file in the sandbox and replaced in context with a short preview plus the file path:| Agent context | Per-call threshold |
|---|---|
| Root agent | 6,000 tokens |
| Subagent | 12,000 tokens |
grep the saved file from the sandbox whenever it needs the original data.
These thresholds are fixed defaults today. Making them configurable per agent, per tool, or per subagent is on the roadmap.
Example
User
Can you please list the mcp servers I have access to
Assistant
Let me get more information about the user.
get_me
get_me
Tool CallTool Response
Assistant
Let me list the MCP servers you have access to.
list_mcp_servers
list_mcp_servers
Tool CallTool Response (blocked) — Full result saved to
/tmp/tool-id-xyz-outputAssistant
Let me get a preview of the data and print the schema.
sandbox
sandbox
Tool CallTool Response
Assistant
Now I understand the schema of the MCP servers output file. Let me write code to parse the MCP server names.
sandbox
sandbox
Tool CallTool Response
Assistant
Hey John, here are the MCP servers you have access to:
- test-realtime-global
- slack-mcp
- google-calendar-mcp
- …