Skip to main content
Glama

x402-bit-xor

Bit Xor: Perform a bitwise XOR operation between two integers. Provide a and b; returns a ^ b.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aNoA to process
bNoB to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / a
      Added value: +{
      +  "description": "A to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / b
      Added value: +{
      +  "description": "B to process",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior3/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 does disclose the result semantics ('returns a ^ b') and that inputs are integers, which is helpful for a pure computation. However it says nothing about bit width, negative-number handling, or determinism/purity guarantees that would matter for a bitwise operator.

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?

A single compact sentence that leads with the operation and ends with the result. No waste, though the 'Bit Xor:' prefix slightly duplicates the operation name that follows.

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?

For a trivial two-parameter pure math tool with no output schema and no annotations, the description covers the essential contract: two integer inputs and an XOR result. Minor gaps (bit width, negative inputs) are low-stakes.

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 nominally 100%, but the schema descriptions are placeholders ('A to process'), so the description is what tells the agent the operands are integers rather than strings. It stops short of clarifying sign handling or expected input format beyond that.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Perform a bitwise XOR operation between two integers.' The operation is inherently distinct from siblings like x402-bit-and, x402-bit-or, and x402-bit-not, so an agent can select it without opening any schema.

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?

The only guidance is 'Provide a and b', which is invocation mechanics, not when-to-use. There is no mention of when XOR is preferable to the other bitwise siblings or any exclusions/edge cases.

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