Skip to main content
Glama

Vega Developer Utilities

Base convert

base_convert
Read-onlyIdempotent

Convert a number between bases 2-36.

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>",
      "from_base": "<from_base>",
      "to_base": "<to_base>"
    },
    "name": "base_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesThe number to convert, written in the source base.
to_baseYesBase to convert the number to, 2 to 36.
from_baseYesBase the number is written in, 2 to 36.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / from_base / description
      Added value: +"Base the number is written in, 2 to 36."
    • addedInput schema / properties / to_base / description
      Added value: +"Base to convert the number to, 2 to 36."
    • addedInput schema / properties / value / description
      Added value: +"The number to convert, written in the source base."
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is fully covered. The description adds the 2-36 radix constraint, which is a genuine behavioral limit, but says nothing about invalid input handling (e.g. digits out of range for the source base) or output formatting. That is a modest addition given the annotation coverage.

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?

A single front-loaded sentence with zero filler, appropriately sized for a three-parameter utility. It is slightly under-informative rather than padded, which is a shortfall better captured under other dimensions.

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?

The tool is simple, an output schema exists, and all parameters are documented in the schema, so the description is serviceable. It nonetheless omits the one thing an agent would want for a string-typed radix field: whether bases are passed as decimal numerals or names, and what happens on invalid digits.

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 coverage is 100% and each parameter already carries its own description, including the 2-36 range for both bases. The description merely restates the base range, adding no syntax hints (such as whether bases are numeric strings like '16' or 'hex', which the string-typed schema leaves ambiguous). Baseline 3 applies 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (convert) and resource (a number), and it pins down the valid base range 2-36. It does not, however, distinguish this tool from siblings such as base64_encode, hex_to_text, or text_to_hex, which an agent could easily confuse with base conversion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance. With siblings like base64_encode/decode and hex_to_text in the same namespace, a sentence such as 'for numeric radix conversion, not text encoding' would have prevented mis-selection, but nothing of the sort is present.

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.

Resources