Skip to main content
Glama

x402-bit-or

Bit Or: Perform a bitwise OR 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

B3.4/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 burden, but this is an inherently pure, side-effect-free arithmetic operation with near-zero behavioral risk. The description does disclose the computed result (a | b), which is the main behavioral fact; it does not address negative numbers, large values, or the string-vs-integer input type mismatch. Adequate but thin for an unannotated tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single tight sentence front-loads the operation, the inputs, and the return value with zero filler.

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 two-input pure function with no output schema and no annotations, the description covers inputs and result adequately. The only gap is the unaddressed discrepancy between the schema's string-typed parameters and the description's claim that inputs are integers.

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's own parameter text ('A to process', 'B to process') is uninformative, so the description's statement that a and b are integers adds real meaning. That said, it says nothing about accepted formats or whether string-typed values will be coerced, so it only marginally exceeds the baseline.

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 operation and resource: bitwise OR between two integers, and gives the exact return expression a | b. The operation name inherently distinguishes it from the other bitwise siblings (bit-and, bit-xor, bit-not), though it never names them explicitly.

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?

There is no when-to-use or when-not-to-use guidance and no mention of alternative tools. 'Provide a and b' is input instruction, not usage context; the agent must infer the use case from the tool 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