Skip to main content
Glama

Interpret a list request

interpret_list
Read-onlyIdempotent

Start here: the buyer's own words become a list we can count, price and sell.

Give it what the buyer would type ("cleaning companies in Texas", "denver
plumbers formed last 30 days with a phone", "NAICS 238220", "SIC 1711",
"MCC 5812", "google category plumber") and you get
back a list shape in the one filter contract — `states`, `filters`, `sort`,
`lane`, `cap` — with a one-sentence `readback` to show the buyer, `assumed`
(every default and substitution, named), `unresolved` (the words it could
not place) and up to three `alternatives`. It is the same interpreter
behind the buy page's search box, so a person and an agent get the same
list from the same words. It never answers in prose, never asks a question
back, never looks a person up, and never emits a predicate on a masked
field (`contact_name`, `email_primary`, `phone_primary`, `registered_agent_name`).

Every classification system is an entry point — a seller who thinks in MCC,
SIC, NAICS or Google category gets the same list. A code we do not carry
directly WIDENS to its parent group or the industries the crosswalk ties it
to, and `assumed` names the step; to see the other systems' equivalents for
a code, call `explain_concept`.

When the buyer asked a question or raised an objection instead ("where does
this come from", "is it legal to call", "how fresh"), the response also
carries `answer` (`{family, headline, body, next_step, facts}`) — our
answer, in our words, written to be shown to the buyer as is.

When the ask pulls two ways — the newest records AND a phone to call —
`alternatives` come back live-quoted (`quote: {records, total_cents,
unit_cents}`, a `why`, one `recommended`): call today · mail first with
phones verified on order · a standing order. Orders are per record with
no minimums, so a small first order works.

The returned shape is the input `quote_list` takes for the count and the
price, and `checkout_list` takes to buy it.

Args:
    text: What the buyer typed, in their own words.
    state: Optional two-letter state hint (live states: CO, CT, DC, FL, IN, NY, OR, PA, TX, VA).
    current: Optional current shape `{states, filters, lane, cap}` — the
        answer merges into it instead of starting over.

Returns:
    `{states, filters, sort, lane, cap, readback, assumed, unresolved,
    alternatives, used_model}` — always a shape, never a 500.

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": {
      "text": "<text>"
    },
    "name": "interpret_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
stateNo
currentNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses a lot: it never answers in prose, never asks a question back, never looks a person up, never emits predicates on masked fields (naming contact_name, email_primary, phone_primary, registered_agent_name), widens unknown codes to parents with `assumed` recording the step, and 'always a shape, never a 500'. These are real behavioral guarantees an agent cannot get from the annotations.

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 front-loaded with the key instruction and has a clean Description/Args/Returns structure, so it is scannable. Some lines are sales-voiced rather than operationally necessary ('a list we can count, price and sell', 'Orders are per record with no minimums, so a small first order works'), which adds length an agent does not need to invoke the tool.

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?

For a three-parameter interpreter with a nested output, the definition covers inputs, the returned shape, the merge behavior, error-free behavior, and how the output feeds quote_list and checkout_list. Although an output schema exists, the prose return summary and the `alternatives`/`answer` sub-shapes give an agent enough to act on the result without guessing.

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

Parameters5/5

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

Schema coverage is 0%, so the description must carry the load, and it does: `text` is 'what the buyer typed, in their own words'; `state` is a state hint with the live states enumerated (CO, CT, DC, FL, IN, NY, OR, PA, TX, VA), which the schema does not contain; `current` is defined by merge semantics ('the answer merges into it instead of starting over'). This adds meaning well beyond the bare object schema.

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?

The opening states a specific transformation: the buyer's free text becomes a list in 'the one filter contract — states, filters, sort, lane, cap'. It names the return fields and explicitly separates itself from siblings ('to see the other systems' equivalents for a code, call explain_concept', 'quote_list takes for the count', 'checkout_list takes to buy it'). The 'Start here' framing makes its role as entry point unmistakable.

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?

It gives an explicit entry-point instruction ('Start here'), names the downstream tools and what they consume, and routes a specific sub-case to explain_concept. It also distinguishes the question/objection case (which produces an `answer`) from the list case, so the agent knows which path it is on without having to inspect other schemas.

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