Skip to main content
Glama

MaCalculatriceEnLigne

Calculate Number Base Convert

calculate_number_base_convert
Read-onlyIdempotent

Convert a number between bases 2 (binary), 8 (octal), 10 (decimal), and 16 (hex). Use for programming. Inputs: value, from-base, to-base. Returns converted number. See list_bundles for related 'conversions' calculators.

Input Schema

NameRequiredDescriptionDefault
valueYesNumber to convert as string
to_baseYesTarget base
from_baseYesSource base

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools).
sourceNoAuthoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21").
formulaNoHuman-readable formula or method used (e.g. "I=P·r·t", "Magnus formula").
reference_urlNoLink to a calcul2 page documenting the calculation in detail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is fully covered structurally. The description adds only 'Returns converted number', which is minimal; with the output schema present, little extra behavioral context is required, so a 3 is appropriate.

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?

Three short sentences, front-loaded with the core action and supported bases. No redundancy, though the trailing list_bundles pointer is tangential to invoking this tool.

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?

For a low-complexity conversion tool with a 100%-covered schema and an output schema, the description is nearly sufficient. Its main gap is failing to differentiate from the near-duplicate sibling calculate_base_converter, which matters in this very crowded 'calculate_*' toolset.

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 value, from_base and to_base. The description merely restates the input names (value, from-base, to-base) without adding format constraints (e.g. valid digit sets per base or whether from_base/to_base are restricted to 2/8/10/16). Baseline 3 holds.

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?

States a specific verb (convert) and resource (a number between bases) and enumerates the supported bases 2/8/10/16, which is concrete. However, it never distinguishes itself from the sibling 'calculate_base_converter', which sounds functionally identical, so an agent cannot disambiguate from the name alone.

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?

'Use for programming' gives a loose context but no when-not conditions and no explicit alternative selection. The only routing hint is a cross-reference to list_bundles, which is a discovery pointer rather than guidance on when this tool beats calculate_base_converter.

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.