Skip to main content
Glama

cinqueport-ctcc-mcp

ctcc_optimize

Deterministic prompt compression, safe truncation character/token slice offsets, and lightweight vs. frontier model-routing recommendations ($0.01 USDC via x402 on Base Mainnet).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>"
    },
    "name": "ctcc_optimize"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoCurrent target model for cost/routing comparison
promptYesPrompt text to compress and optimize
messagesNoOptional chat messages array [{role, content}]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden, and it does add real value by disclosing the $0.01 USDC cost via x402 on Base Mainnet and the determinism guarantee. However, it omits whether a wallet/payment setup is a prerequisite, what happens on payment failure, and what the response contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler, but it crams three distinct capabilities plus a pricing parenthetical into one run-on noun phrase, which slightly hurts scannability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter tool with no annotations and no output schema, the definition covers the operations and the payment model but leaves return shape, error behavior, and the prompt-vs-messages relationship unexplained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all three parameters, making 3 the baseline. The description adds only marginal meaning, hinting that `model` drives routing comparison, but says nothing about `messages` beyond the schema's own text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names three concrete capabilities — deterministic prompt compression, safe truncation slice offsets, and model-routing recommendations — so the resource and operations are identifiable. It does not differentiate from the sibling ctcc_check, leaving the agent to infer which tool serves which need.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance, no mention of the ctcc_check alternative, and no clarification of when to supply `prompt` versus `messages`. The agent must infer invocation conditions from the capability list alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.