Skip to main content
Glama

x402-bson

x402-bson: 手写 BSON(MongoDB 二进制 JSON)编码/解码(无外部依赖)。encode 输出 base64,decode 输入 base64 → JSON。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opNoOp to process
jsonNoJson to process
textNoText to process
base64NoBase64 to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
      +}
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses 'no external dependencies' and the base64 input/output convention, but omits operation selection, required inputs, error behavior, and whether the tool is purely offline/read-only. Gaps remain for a four-parameter 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?

The description is a single compact sentence with the core operation front-loaded after the tool name. No redundant explanation, though the 'x402-bson:' prefix restates the name.

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 encode/decode tool with no annotations, no required fields, and no output schema, the description is insufficient. It lacks op semantics, required-input rules, and parameter-to-operation mapping; an agent cannot confidently invoke it.

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 baseline is 3 even though the schema descriptions are generic ('Op to process', etc.). The description clarifies that base64 is the encode output and decode input and that decode returns JSON, but it does not map op/json/text/base64 to specific operations.

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 states the tool encodes/decodes BSON (binary JSON) and specifies the base64 envelope for encode output and decode input. This is a specific verb+resource, though it does not explicitly contrast with sibling format tools such as x402-cbor or x402-msgpack.

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 explains the encode/decode direction and base64 mapping, which implies how to use it, but gives no when-to-use guidance, no prerequisites, and no alternatives for other serialization formats. The agent must infer that BSON is desired from the name 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.

Resources