x402-cbor
x402-cbor: 手写 CBOR(RFC 8949)编码/解码(无外部依赖)。encode 输出 base64,decode 输入 base64 → JSON。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | ||
| json | No | ||
| text | No | ||
| base64 | No |
x402-cbor: 手写 CBOR(RFC 8949)编码/解码(无外部依赖)。encode 输出 base64,decode 输入 base64 → JSON。
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | ||
| json | No | ||
| text | No | ||
| base64 | No |
Changes observed during successful MCP inspections.
Input schema / properties / base64 / descriptionRemoved value: -"Base64 to process"Input schema / properties / json / descriptionRemoved value: -"Json to process"Input schema / properties / op / descriptionRemoved value: -"Op to process"Input schema / properties / text / descriptionRemoved value: -"Text to process"Input schema / properties / base64Added value: +{
+ "description": "Base64 to process",
+ "type": "string"
+}Input schema / properties / jsonAdded value: +{
+ "description": "Json to process",
+ "type": "string"
+}Input schema / properties / textAdded value: +{
+ "description": "Text to process",
+ "type": "string"
+}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.
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.
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.
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.
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.
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.
Add one secure layer between your agents and this server.