On this page
Reference
ctx_optimize
Input contract and parameters for ctx_optimize.
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.
Parameters
Generated from the registered input schema. “Required” reflects the schema; individual actions can impose additional requirements.
actionstringRequiredRequested Solution Intelligence action.
Accepted: reviewsuggestreportladderresolvedecidefingerprintpolicy-check
categorystringResolved finding category: stdlib, native, reuse, yagni, one-line, or debt
Accepted: stdlibnativereuseyagnione-linedebt
decisionstringResolved finding or chosen implementation; required for action=resolve
formatstringResponse format.
Accepted: textjson
Schema default: "text"
pathstringProject-relative file path for review or suggestion.
scopestringTarget review scope.
Accepted: difffilesymbol
Schema default: "file"
symbolstringOptional symbol name when scope is symbol.
Exact JSON schema
Inspect the complete input schema
{
"properties": {
"action": {
"description": "Requested Solution Intelligence action.",
"enum": [
"review",
"suggest",
"report",
"ladder",
"resolve",
"decide",
"fingerprint",
"policy-check"
],
"type": "string"
},
"category": {
"description": "Resolved finding category: stdlib, native, reuse, yagni, one-line, or debt",
"enum": [
"stdlib",
"native",
"reuse",
"yagni",
"one-line",
"debt"
],
"type": "string"
},
"decision": {
"description": "Resolved finding or chosen implementation; required for action=resolve",
"type": "string"
},
"format": {
"default": "text",
"description": "Response format.",
"enum": [
"text",
"json"
],
"type": "string"
},
"path": {
"description": "Project-relative file path for review or suggestion.",
"type": "string"
},
"scope": {
"default": "file",
"description": "Target review scope.",
"enum": [
"diff",
"file",
"symbol"
],
"type": "string"
},
"symbol": {
"description": "Optional symbol name when scope is symbol.",
"type": "string"
}
},
"required": [
"action"
],
"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
Review code for over-engineering and propose simplifications.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