Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-cbor

x402-cbor: 手写 CBOR(RFC 8949)编码/解码(无外部依赖)。encode 输出 base64,decode 输入 base64 → JSON。

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": {
      "json": "<json>"
    },
    "name": "x402-cbor"
  }
}

Input Schema

NameRequiredDescriptionDefault
opNo
jsonYes
textNo
base64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "json"
      +]
  2. Changed4 schema fields changed
    • removedInput schema / properties / base64 / description
      Removed value: -"Base64 to process"
    • removedInput schema / properties / json / description
      Removed value: -"Json to process"
    • removedInput schema / properties / op / description
      Removed value: -"Op to process"
    • removedInput schema / properties / text / description
      Removed value: -"Text to process"
  3. First observed

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full burden: it does disclose that encode emits base64 and decode consumes base64 into JSON, plus the no-dependency claim. But it says nothing about error behavior on malformed CBOR, size limits, canonical/non-canonical encoding, or which JSON subset is supported — meaningful gaps for a codec.

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?

Two tight sentences that front-load the capability and then the I/O formats; nothing is padded. The only waste is the redundant tool-name prefix.

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

Completeness2/5

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

For a four-parameter tool with no annotations and no output schema, the description should resolve how 'op' selects encode vs decode and how 'json'/'text'/'base64' map to each mode. It leaves the mode-switching contract and parameter roles unresolved.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters. The description only indirectly touches base64 (decode input) and JSON (decode output), leaving 'op', 'text', and the required 'json' parameter unexplained — and the required 'json' is confusing next to a decode path that takes base64 in.

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?

States a specific verb and resource — handwritten CBOR (RFC 8949) encode/decode — with the concrete output format (base64) and the RFC reference, which is enough to separate it from the neighboring abi-encode/abi-decode tools. It does not name or contrast those siblings explicitly, keeping it below a 5.

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?

It implies two modes (encode and decode) but never says how to pick one, when a caller should choose this over the ABI codec siblings, or what preconditions apply. No when-not-to-use or routing guidance is given.

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.