Skip to main content
Glama

Cuelark Tools

Binary, hex, octal and decimal integer calculator

binary_calculator
Read-onlyIdempotent

Add, subtract, multiply, divide or apply bitwise operators to integers in binary, hexadecimal, octal or decimal, or convert a value into every base. Optional 8, 16, 32 or 64-bit wrapping, with or without two's complement. Input is not stored.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "binary_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNoFirst operand, or the value to convert
bNoSecond operand (not used for convert or not)
opNocalculate (default) plus one of add, sub, mul, div, mod, and, or, xor, nand, nor, not, shl, shr, sar; or convert
baseNoInput base, default bin
widthNoBit width, default auto
signedNoTreat a fixed width as signed two's complement

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds value beyond that with the optional fixed-width wrapping and two's-complement semantics and the privacy note that input is not stored. It stops short of describing failure behavior such as divide-by-zero or overflow handling when width is `auto`.

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 sentences, front-loaded with the operation set and base scope, with the operational modifiers and the privacy note trailing. Dense but every clause carries information; no 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?

With no output schema, the description does enough by indicating that `convert` yields a value in every base. All six parameters are covered collectively across schema and description, and the privacy statement closes the main open question for a pure computation tool. Error and result-format details are the only remaining gaps.

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 every parameter is already documented, which sets a baseline of 3. The description mirrors the schema on widths and signedness and clarifies that `b` is unused for convert/not, but adds no format details (prefix conventions, accepted digit characters) beyond what the schema states.

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 specific verbs (add, subtract, multiply, divide, bitwise ops, convert) and the resource (integers in bin/hex/oct/dec), so the tool's function is unmistakable. It does not, however, distinguish itself from the sibling tools `convert` and `calculate`, which plausibly overlap, so it falls short of full sibling differentiation.

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 implied by enumeration: pick an arithmetic/bitwise op, or `convert` to render a value in all bases. There is no explicit statement of when to prefer this over `convert` or `calculate`, nor any guidance on unsupported combinations (e.g., which ops honor `b`).

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