Codex MCP output_token_limit: what to set for Sume tools

Codex lets you cap one MCP tool's output with output_token_limit. Sume tools return ids and media.sume.com URLs, not file bytes, so the cap can stay small.

4 min readSume
All posts

Set mcp_servers.<id>.tools.<tool>.output_token_limit per tool, and keep it small for Sume: Sume's MCP tools report public ids and media.sume.com URLs, and hosted MCP never carries file bytes. The key is a token budget for one tool's output; the value to choose depends on the tool, and the number below is only an example.

What does the Codex config key do?

The config reference, read 2026-09-30, lists mcp_servers.<id>.tools.<tool>.output_token_limit as the "token budget for one MCP tool's output". It sits next to startup_timeout_sec (default 10 s) and tool_timeout_sec (default 60 s). The 0.158.0 release notes also say MCP and Code Mode input schema budgets became configurable; the notes do not name the keys, so check the reference for them.

[mcp_servers.sume]
url = "https://mcp.sume.com/mcp"

# Example value, not a Sume recommendation from the docs
[mcp_servers.sume.tools.jobs_result]
output_token_limit = 2000

Why can Sume's limit stay small?

Per MCP tools and gates, agents should report Sume public ids and media.sume.com URLs, and hosted MCP cannot read files from your laptop; uploads go through an upload URL, a client PUT, and assets_complete. Generated media comes back as a URL, so there is no large payload to budget for.

What Sume hosted-MCP tools return, from the docs read 2026-09-30.
ConcernWhat the docs say
Result shapePublic ids and media.sume.com URLs
File bytesHosted MCP cannot read files from your laptop
Tool description sizeCapped at 2048 bytes per jobs-catalog tool in the server code
What is visibletools_list shows the session-visible subset

What should I size the input budget against?

Size against what your session can see. tools_list returns the session-visible subset, so a read-only OAuth session exposes fewer tools than an API-key session and costs less schema. The jobs tool descriptions are byte-capped in the server code (JOBS_TOOL_DESCRIPTION_MAX_BYTES is 2048), which keeps each description small.

What if a tool still exceeds the limit?

Raise that one tool's value rather than the whole server, and see MCP tool exceeds maximum allowed tokens for the general fix. Do not paste signed URLs or keys into logs while debugging.

Sources

Related posts

More in Developers

All Developers posts

Written by Sume