Skip to main content
Glama

Integer base converter

number_base_convert
Read-onlyIdempotent

Convert integers between bases 2 and 36, including arbitrary-size values, with optional 0x/0b/0o prefixes and explicit input/output base settings.

Instructions

Convert an integer between bases 2 to 36 (arbitrary size). Accepts 0x/0b/0o prefixes. (Same as IT-Tools /base-converter.)

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": {
      "value": "<value>"
    },
    "name": "number_base_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesThe number, e.g. "255", "0xff", "11111111"
toBaseNoExtra output base
fromBaseNoInput base; inferred from prefix, else 10

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description adds real context beyond that: arbitrary precision (no overflow) and 0x/0b/0o prefix acceptance. It does not say what happens on invalid input or how the result is formatted.

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 sentences with the core capability front-loaded; no wasted framing. The trailing parenthetical '(Same as IT-Tools /base-converter.)' is only marginally useful but costs little.

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

Completeness3/5

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

With three parameters and no output schema, the description should say what is returned (a string in the target base) and whether toBase omission defaults to something. Those gaps are modest but real for a conversion tool with no documented return value.

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 each parameter already documents its role, including that fromBase is inferred from the prefix and defaults to 10. The description's prefix note largely restates the schema; 'arbitrary size' is the only added semantic. Baseline 3 applies.

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?

The description uses a specific verb and resource ('Convert an integer between bases 2 to 36') plus the scope detail of arbitrary size and accepted prefixes. An agent can distinguish this from case_convert, roman_numeral, or color_convert without opening the schema.

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 the nature of the operation: use it when you need a number re-expressed in another base. There is no guidance on when to prefer sibling tools (e.g. roman_numeral) and no exclusion or prerequisite statements. Adequate but leaves routing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.