Skip to main content
Glama

Search units

search_units
Read-onlyIdempotent

Fuzzy-search the unit index by name, symbol, alias or transliteration (e.g. 'sq ft', 'tola', 'kmh'). Returns matching units with their category ids.

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 results to return (default 10).
queryYesFree-text unit name, symbol or alias.

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 cover the safety profile (readOnly, idempotent, closed-world), so the description's job is narrower. It adds useful behavior detail — the search covers transliterations and returns category ids — but says nothing about ranking, matching strictness, or case sensitivity, which matter for a fuzzy search.

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?

Two sentences, zero filler, with the searchable-field list and the return shape front-loaded and concrete examples inline. Nothing could be removed without losing information.

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 two-parameter read-only search with full schema coverage and clear annotations, this is close to complete: it says what is searched and what comes back. Only the absence of ranking or empty-result behavior keeps it from a 5.

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%, so both parameters are already documented, which sets the baseline at 3. The description adds a little beyond the schema by including 'transliteration' as a searchable field, but 'limit' is never mentioned and no query format guidance is added.

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 and resource ('fuzzy-search the unit index') and names the searchable fields: name, symbol, alias, transliteration. The word 'fuzzy-search' implicitly separates it from the sibling 'list_units', but no sibling is named explicitly, 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 implied: search when you have a partial or approximate unit string, supported by the examples 'sq ft', 'tola', 'kmh'. There is no explicit when-not guidance, no statement on trying list_units instead when browsing, and no note on what to do if zero results come back.

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.