Skip to main content
Glama

Nim Sum

nim_sum
Read-onlyIdempotent

The nim-sum of a and b, their bitwise exclusive or. 13 xor 7 is 10, and 255 xor 256 is 511. Both run from 0 to 999999999999999. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/nim-sum

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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "nim_sum"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely new behavioral context not present in annotations: the paid pricing model ($0.001 USDC per successful call, x402 on Solana) and the equivalent HTTPS endpoint. It does not mention failure behavior for out-of-range inputs, which is a minor omission.

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?

Front-loaded with the definition, then examples, then domain constraints, then payment/transport details — a sensible ordering with little waste. The price and HTTPS-URL sentences are operational rather than mathematical, but they earn their place for an x402-paywalled tool.

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-parameter arithmetic tool with no output schema, the description covers input domain, the exact computation, and illustrative outputs, which is enough to call it correctly. Missing only error/range-violation behavior, which is a small gap given how constrained the inputs are.

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 0%, so the description bears some burden; it does clarify that both operands are XOR'd and that both are bounded from 0 to 999999999999999, though that range duplicates the schema's min/max. It never explicitly says which parameter is which beyond the order in 'a and b', but the operation is symmetric so the risk is low.

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 the operation precisely ('nim-sum of a and b, their bitwise exclusive or'), which is a specific verb+resource rather than a restatement of the name. The worked examples (13 xor 7 = 10, 255 xor 256 = 511) remove any ambiguity about the semantics. It does not differentiate itself from adjacent bit-manipulation siblings like popcount or gray_encode, but the operation is unambiguous on its own.

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 explicit guidance on when to use this versus alternatives, and no exclusions or prerequisites stated. The examples imply usage but do not tell the agent under what conditions this tool should be selected over a general math_eval or bit-manipulation sibling.

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