Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-bson

x402-bson: 手写 BSON(MongoDB 二进制 JSON)编码/解码(无外部依赖)。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-bson"
  }
}

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

B3.1/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 burden. It does disclose useful behavioral facts (no external dependencies, base64 output on encode, JSON output on decode), but says nothing about error behavior, unsupported BSON types, size limits, or how encode/decode is actually selected at call time.

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 short clauses, front-loaded with the resource and the direction of data flow; nothing is wasted. It is terse to the point of being cryptic about parameters, but structurally sound.

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

Completeness4/5

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

Placeholder.

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, so the description must compensate and does not. It never mentions `op`, `json`, `text`, or `base64` by name or explains which input applies to encode versus decode — notably `json` is the sole required field even for a decode call, which the description leaves unexplained.

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 a specific verb pair and resource: hand-rolled BSON (MongoDB binary JSON) encode/decode with no external dependencies. An agent can immediately tell this converts between JSON and base64-encoded BSON, though it offers no differentiation from the many other x402-* utilities.

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?

Usage is only implied by the I/O contract: encode produces base64, decode consumes base64 and yields JSON. There is no explicit statement of when to pick encode vs decode, no mention of the `op` selector, and no exclusions or prerequisites.

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.