Skip to main content
Glama

radix_convert

Convert numbers between any bases from 2 to 36, including fractional values. Flags non-terminating representations when a base cannot exactly represent a fraction.

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses an important behavioral trait: bases that cannot represent a fraction are flagged as non-terminating (e.g., 0.1 in base 2). This goes beyond the schema and helps predict tool behavior. It does not mention handling of negatives or case sensitivity, but the provided information is substantial.

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 sentences and front-loaded with the core purpose. The behavioral note and example are concise and add value without redundancy. Every word earns its place.

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 that an output schema exists, the description does not need to explain return values. It covers the main features: any base 2..36, fractions, non-terminating flag, and provides an example. It lacks differentiation from `base_repr` and edge-case details, but for a moderately complex conversion tool, this is reasonably complete.

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?

With schema description coverage at 0%, the description must compensate. The example `radix_convert('zz', 36, 7)` clarifies the order (value, to_base, from_base) and the range 2..36. However, it does not mention that `to_base` and `from_base` default to 10, nor does it specify input constraints like string format beyond the example. Some parameter semantics are inferred but not fully explicit.

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 a value between any bases 2..36 and includes fractions, with a concrete example. It distinguishes itself from sibling tools like base_repr by emphasizing support for fractions and arbitrary bases, so an agent can identify when to use this tool.

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 example `radix_convert('zz', 36, 7)` implies the parameter order and a use case, and the range 2..36 sets constraints. However, it does not explicitly state when to prefer this tool over `base_repr` or other siblings, nor does it describe conditions like when a conversion might fail or require special handling.

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

Install Server

Other Tools

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