Skip to main content
Glama

Convert a unit

convert_units
Read-onlyIdempotent

Convert inside wei/gwei/eth, sats/btc, usdc_atomic/usdc, or unix/iso. amount is a decimal string. Paid like hash_text. POST https://api.agentpaywire.com/v1/tools/convert. 1000 sats = 1 USDC here, with no live FX.

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

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
amountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/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 covered. The description adds genuinely useful behavior beyond that: the fixed rate '1000 sats = 1 USDC here, with no live FX' warns the agent not to treat results as market-accurate, and the pricing note plus the POST endpoint are extra context. However it never states what the response contains (converted value, unit label, rounding) and says nothing about invalid or unsupported pair behavior.

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?

Very short and front-loaded, with the unit families first and the rate caveat last. The telegraphic fragments ('Paid like hash_text') and the raw endpoint URL are slightly cryptic for an agent unfamiliar with the sibling, but nothing is padded.

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?

For a simple three-string conversion tool this covers scope, value formats, pricing, and the fixed-rate caveat. The notable remaining gap is return-value shape, which matters because there is no output schema and the description never says whether a converted amount, a unit string, or both come back.

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 0% across three required, undescribed parameters, so the description must carry the load. It does partially: it supplies the valid value vocabulary for from/to and clarifies that amount is a decimal string (not a number). But it never explicitly binds these to the parameter names, leaving the agent to infer which endpoint of the conversion each string belongs to and whether case or prefix variants are accepted.

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?

A specific verb (convert) plus the exact resource families it handles: wei/gwei/eth, sats/btc, usdc_atomic/usdc, unix/iso. This is a strong disambiguator — an agent can tell this apart from encode_data, decode_data, or calculate without opening any schema.

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 enumerated unit pairs implicitly define the scope of use (only these conversions are supported), but there is no explicit when-to-use/when-not guidance and no named alternative for conversions outside these families. 'Paid like hash_text' gives a cost reference to a sibling but is not usage routing.

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