Skip to main content
Glama

search_units

Read-only

Find a unit of measurement in the shared catalog (QUDT plus currencies) by name, symbol or currency code ("kilogram", "kg", "USD"); matching is fuzzy. Returns each unit's uri (what set_column_semantics takes), label, symbol and quantity kind, plus quantity_kinds across all matches, best first: pass one back as quantity_kind to disambiguate (unit:M the metre vs a minute). Scale is NOT a unit: thousands of dollars is unit:CCY_USD with scale_exponent: 3. Static: search once per unit.

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": {
      "query": "<query>"
    },
    "name": "search_units"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum units to return.
queryYesWhat to look for: a unit name, symbol, or currency code — "kilogram", "kg", "USD", "megawatt hour".
quantity_kindNoOne quantity kind (a `uri` from `quantity_kinds`), e.g. `quantitykind:Mass`; its sub-kinds are included.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses matching behavior ('matching is fuzzy'), result ordering ('best first'), and the catalog's static nature, none of which appear in the annotations. Because there is no output schema, it also carries the return contract itself (uri, label, symbol, quantity kind, plus aggregate `quantity_kinds`).

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?

It is dense and front-loaded: purpose first, then return shape, then disambiguation, then the scale caveat and the caching note. Heavy parenthetical nesting and long commas make it slightly harder to scan, but essentially every clause carries operational information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations covering returns, the description supplies the full picture an agent needs: accepted query forms, result fields, ordering, the disambiguation workflow, and the scale-vs-unit pitfall. Nothing required to call the tool correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds value by explaining why `quantity_kind` exists (disambiguation) and by giving contrastive examples ('unit:M' the metre vs a minute). The `limit` parameter is never mentioned, and the 'sub-kinds are included' nuance already lives in the schema, so the lift over the schema is moderate rather than decisive.

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 gives a specific verb and resource ('Find a unit of measurement in the shared catalog (QUDT plus currencies)') and specifies the lookup keys (name, symbol, currency code). It also names the downstream consumer ('what `set_column_semantics` takes'), which tells an agent where the result is used. It does not explicitly contrast with the generic `search` sibling, so it falls just short of full sibling differentiation.

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

Usage Guidelines5/5

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

Explicit when-to-use and when-not-to-use rules are stated: pass a `quantity_kinds` value back as `quantity_kind` to disambiguate metre vs minute, and 'Scale is NOT a unit' with the concrete correct alternative (`unit:CCY_USD` with `scale_exponent: 3`). It also says the catalog is static and to search once per unit, preventing redundant calls.

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