Skip to main content
Glama

Convert Units

util_convert
Read-onlyIdempotent

Convert Nano amounts between raw and XNO units using a specified value and source/target units.

Instructions

Convert between Nano units (raw, XNO).

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": {
      "amount": "<amount>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "util_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget unit: raw or xno
fromYesSource unit: raw or xno
amountYesValue to convert (e.g. "1.5")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.2.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds the unit pair but says nothing about precision, rounding behavior, or how the converted value is returned, which is the remaining useful context.

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 padding. It is efficient, though slightly under-specified rather than overly verbose.

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 simple three-parameter read-only utility the description is roughly adequate, and annotations cover the safety profile. However, with no output schema the description should say what conversion result comes back (e.g., string amount, rounding), and it omits that.

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%: all three parameters (amount, from, to) are documented in the schema, including the raw/xno values. The description merely restates the same unit list, adding no format or precision guidance beyond it, so the baseline of 3 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?

States a specific verb ('Convert') and resource ('Nano units') plus the two supported units (raw, XNO), so an agent immediately knows what the tool does. It does not differentiate from siblings, but the util_* neighbors (qr, validate) are clearly distinct functions, so the risk of mis-selection is low.

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: an agent can infer this is the tool for expressing an amount in a different Nano denomination. There is no explicit statement of when to use it, no prerequisites, and no mention of any alternative.

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