Skip to content
Documentation

Reference

ctx_crush

Input contract and parameters for ctx_crush.

Status by featureReviewed September 2026

MCP tool · Read, search & shell

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.

contentstringRequired

JSON, log output, or structured text to compress

keep_anomaliesboolean

Keep entries containing errors, warnings, failures, critical events, timeouts, or exceptions

Schema default: true

max_itemsinteger

Maximum normal sample entries; anomaly entries are retained in addition

Schema default: 5

modestring

Input type; auto detects JSON arrays, JSON objects, and log text

Accepted: autojsonarraylog

Schema default: "auto"

Exact JSON schema

Inspect the complete input schema
{
  "properties": {
    "content": {
      "description": "JSON, log output, or structured text to compress",
      "type": "string"
    },
    "keep_anomalies": {
      "default": true,
      "description": "Keep entries containing errors, warnings, failures, critical events, timeouts, or exceptions",
      "type": "boolean"
    },
    "max_items": {
      "default": 5,
      "description": "Maximum normal sample entries; anomaly entries are retained in addition",
      "maximum": 1000,
      "minimum": 1,
      "type": "integer"
    },
    "mode": {
      "default": "auto",
      "description": "Input type; auto detects JSON arrays, JSON objects, and log text",
      "enum": [
        "auto",
        "json",
        "array",
        "log"
      ],
      "type": "string"
    }
  },
  "required": [
    "content"
  ],
  "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
Compress JSON arrays, nested JSON objects, and logs while preserving schema, anomalies, and representative samples.
Sources & versions3 references Reviewed
  • 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