Skip to main content
Glama

x402-cbor

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

Input Schema

NameRequiredDescriptionDefault
opNo
jsonNo
textNo
base64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
  2. Changed3 schema fields changed
    • addedInput schema / properties / base64
      Added value: +{
      +  "description": "Base64 to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / json
      Added value: +{
      +  "description": "Json to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "Text to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.4/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. It usefully discloses the I/O asymmetry (encode → base64, decode → JSON) and that the implementation has no external dependencies. It says nothing about error behavior, input size limits, or whether decode failures are surfaced as errors, which matters for a codec tool.

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, front-loaded with the format and RFC, then the I/O semantics. The only waste is repeating the tool name as a prefix, which the caller already has. Otherwise every clause carries information.

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 4-param codec with no annotations, no output schema, and 0% schema coverage, the description covers the encode/decode direction but leaves param roles and failure modes under-specified. Adequate to attempt a call, not complete enough to guarantee a correct one.

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 coverage is 0% across 4 params and op has no enum, so the description must compensate. It partially does, implying op is encode/decode and that base64 feeds decode while json/text feed encode. However json vs text is never disambiguated and the accepted op values are never spelled out explicitly.

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: hand-written CBOR (RFC 8949) encoding/decoding. The format is named precisely, which distinguishes it from sibling serializers like x402-bson, x402-msgpack, and x402-base64, though it never explicitly names an alternative. Clear purpose with no explicit sibling routing.

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

Usage Guidelines3/5

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

The description implies usage through the encode/decode split ('encode outputs base64, decode inputs base64 → JSON'), enough to pick a direction, but it never states when to choose this tool over the many base64/bson/msgpack siblings, nor any prerequisite or exclusion. Usage is inferable but not guided.

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.

Resources