Skip to main content
Glama

radix_convert

Convert numbers between any bases 2-36, including fractions, and flag non-terminating representations when the target base cannot represent the fraction exactly.

Instructions

Convert a value between ANY bases 2..36, fractions included; bases that cannot represent the fraction (e.g. 0.1 in base 2) are flagged non-terminating. radix_convert('zz', 36, 7) is one call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes
to_baseNo
from_baseNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed6 schema fields changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / from_base / title
      Added value: +"From Base"
    • addedInput schema / properties / to_base / title
      Added value: +"To Base"
    • addedInput schema / properties / value / title
      Added value: +"Value"
    • addedInput schema / title
      Added value: +"radix_convertArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It reveals that fractions are included, and bases that cannot represent a fraction are flagged as non-terminating. It also provides a concrete example call. It does not mention side effects (likely none) or error handling beyond flagging, but the core behavior is transparent.

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?

The description is two concise sentences, front-loaded with the main purpose and followed by a valuable example. Every sentence adds meaningful information, and there is no redundancy or 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?

Given the tool's moderate complexity (base conversion with fractions and non-terminating flagging) and the absence of an output schema, the description covers the essential behaviors and provides an example. It does not detail return values or error messages, but the conversion process is reasonably specified. The description falls short of a perfect score because it leaves parameter-specific details to the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 3 parameters with 0% description coverage, so the description must clarify each parameter. It only mentions the value and bases implicitly via the example 'radix_convert('zz', 36, 7)'. It does not explain the role of from_base vs to_base, their defaults, or that the value must be a string. The example partially illustrates parameter order but is ambiguous about which base is source vs target.

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 clearly states the tool converts values between any bases 2..36, including fractions. It uses a specific verb ('convert') and a specific resource (value between bases), and the qualification 'ANY bases 2..36, fractions included' distinguishes it from sibling tools like base_repr or float_repr. The example call further clarifies the tool's scope.

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 implies usage for base conversion but does not explicitly state when to use this tool over alternatives like base_repr. It does not mention constraints or exclusions, though the scope (2..36, fractions) is clear. There is no guidance on when not to use it, leaving the agent to infer from the description alone.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/The-40-Thieves/codecalc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server