On this page
Reference
ctx_plan
Input contract and parameters for ctx_plan.
MCP tool · Planning tools
Call this tool through your MCP client. Its availability depends on your active configuration and profile.
This registry contract is separate from the SDK. For terminal commands, use the CLI reference.
Example call
JSON for an MCP client. Replace example paths and queries with your own project values.
{
"name": "ctx_plan",
"arguments": {
"task": "Understand authentication",
"budget": 4000,
"profile": "balanced"
}
}Parameters
Generated from the registered input schema. “Required” reflects the schema; individual actions can impose additional requirements.
budgetintegerToken budget limit (default: 12000)
profilestringultra_lean (minimal)|balanced (default)|forensic (exhaustive)
taskstringRequiredTask description (short English preferred)
Exact JSON schema
Inspect the complete input schema
{
"properties": {
"budget": {
"description": "Token budget limit (default: 12000)",
"type": "integer"
},
"profile": {
"description": "ultra_lean (minimal)|balanced (default)|forensic (exhaustive)",
"type": "string"
},
"task": {
"description": "Task description (short English preferred)",
"type": "string"
}
},
"required": [
"task"
],
"type": "object"
}Runtime description
The following is the tool's own agent-facing description, reproduced from the reviewed registry. It can contain implementation terminology; it does not expand the public stability commitment.
Read the agent-facing description
WORKFLOW: set task+profile -> ctx_plan -> use results with ctx_read/ctx_compose.
ANTIPATTERN: NOT for compressing already-selected files (use ctx_fill).
Selects files for context via Phi scoring + budget + policy.
task=short English; budget=token limit (default 12000);
profile=ultra_lean|balanced|forensic. Saves tokens by prioritizing relevant files.Sources & versions
- mcp_manifest.rsrust/src/core/mcp_manifest.rsReviewed checkout
- registry.rsrust/src/server/registry.rsReviewed checkout
- dynamic_tools.rsrust/src/server/dynamic_tools.rsReviewed checkout
- Core checkout
50fbff09c9- Installed runtime
- 3.10.2
- SDK release
- 1.1.0
Separate baselines for source, CLI/configuration and SDK contracts. Review does not certify every platform or integration.
Versions & compatibility