Skip to main content
Glama

Duo Data Utilities: IBAN, VAT, ISIN Validation API

Base converter: integers between number bases 2 to 36 (hex, binary, octal)

base_convert
Read-onlyIdempotent

Base converter: convert an integer between any two numeric bases from 2 to 36 (hex, binary, octal and more), with arbitrary precision so values far beyond 2^53 are exact. Accepts an optional sign and common prefixes (0x, 0b, 0o), validates every digit against the source base, and returns the value in the target base, in decimal, and as its bit length and digit count. Price: $0.05 per successful call, paid over x402 (USDC on Base).

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": "base_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoTarget base 2-36, default 10. Accepted: integer 2-36.
caseNoDigit case for bases above 10: lower (default) or upper. Accepted: lower, upper.
fromNoSource base 2-36, or auto (default) to read a 0x/0b/0o prefix. Accepted: integer 2-36, or 'auto'.
valueYesInteger to convert; optional sign and 0x/0b/0o prefix. Accepted: at most 1024 characters.
prefixNoEmit 0x/0b/0o where conventional. Default false. Accepted: true or false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / prefix / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "enum": [
      +      "true",
      +      "false"
      +    ],
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / prefix / enum
      Removed value: -[
      -  "true",
      -  "false"
      -]
    • removedInput schema / properties / prefix / type
      Removed value: -"string"
    • addedInput schema / properties / to / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / to / type
      Removed value: -"string"
  2. Added

TDQS

A4.2/5.0
Behavior5/5

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

Well beyond the readOnly/idempotent annotations, it discloses the paid-call cost model ($0.05 per successful call via x402 USDC on Base), the arbitrary-precision guarantee past 2^53, per-digit validation against the source base, prefix auto-detection, and what the response contains. With no output schema, describing the returned fields (target base, decimal, bit length, digit count) is genuinely load-bearing.

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?

The capability statement is front-loaded and dense with useful clauses; the pricing sentence is separated and short. It is slightly packed in the first sentence, but no clause is filler.

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

Completeness5/5

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

For a 5-parameter, single-required-parameter tool with full schema coverage and no output schema, the description covers capability, precision, input acceptability, return contents, and cost. An agent can call it correctly and anticipate the charge without opening anything else.

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 the schema already documents to/from/value/prefix/case including defaults and enums. The description adds only frame-level context (optional sign, common prefixes, digit validation) rather than per-parameter meaning beyond the schema, which is the expected baseline when the schema does the heavy lifting.

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: 'convert an integer between any two numeric bases from 2 to 36', with concrete examples (hex, binary, octal) and a precision guarantee. This is unmistakably distinct from the sibling converters (punycode_convert, calendar_convert, timezone_convert), which operate on different domains entirely.

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?

The description establishes context (base 2-36, 'auto' source base reading a 0x/0b/0o prefix, default target base 10) but never says when to pick this tool over anything else or what it deliberately does not handle. Usage is heavily implied by the narrow domain rather than stated, so it lands at minimum-viable-plus rather than explicit guidance.

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.