Skip to main content
Glama

Decimal Converter

calculator_decimal_convert
Read-only

Convert a decimal integer to binary, octal, and/or hexadecimal.

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

Input Schema

NameRequiredDescriptionDefault
toNoOptional target: binary|octal|hexadecimal|all.all
valueYesDecimal integer (negatives supported).

Output Schema

NameRequiredDescriptionDefault
octalNo
binaryNo
decimalNo
expressionYes
hexadecimalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered structurally. The description adds no behavioral context beyond what the annotations and schema provide (e.g., it doesn't confirm negative handling or output formatting), so with annotations present a middle score 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with zero wasteful content. The conversion direction and optionality ('and/or') are stated efficiently with no padding.

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?

With an output schema, complete annotations, and 100% schema coverage, the description is sufficient for an agent to call the tool correctly. The only minor gap is the absence of sibling differentiation, which matters given the dense cluster of similar converter tools.

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%, with both 'value' and 'to' fully documented including enum-like target values and negative support. The description adds no parameter meaning beyond the schema, so the baseline 3 for high-coverage schemas applies.

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 states a specific verb (Convert) and resource direction (decimal integer → binary/octal/hex), which is clear enough for an agent to understand the operation. However, it does not differentiate itself from closely related siblings such as calculator_base_convert, calculator_convert, calculator_hex_convert, or calculator_binary_decimal, so it falls short of a 5.

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?

Usage is only implied: the 'decimal integer' input signals this is the tool for decimal-to-other conversion, but there is no explicit guidance on when to prefer it over calculator_base_convert or the per-base converters (hex_convert, octal_convert, binary_decimal). No exclusions or alternatives are named.

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.