Skip to main content
Glama

AssistAnt 24/7: trusted local businesses + get found by AI

List towns in a state

list_towns
Read-onlyIdempotent

Towns in one U.S. state the directory covers, with how many businesses of a trade (default appliance repair) are within 25 miles, most first.

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": {
      "state": "<state>"
    },
    "name": "list_towns"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 25
stateYesTwo-letter state, e.g. "TN"
tradeNoService key or plain words, e.g. "plumbing", "hvac". Default appliance_repair.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: the result set is one state the directory covers, counts are scoped to a 25-mile radius, and ordering is descending by count. It stops short of explaining what happens for uncovered states or how many towns come back by default.

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 dense sentence with zero filler, front-loading the resource and then the payload and ordering. The phrasing 'Towns in one U.S. state the directory covers' is slightly convoluted but still clear.

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?

With no output schema, the description carries the burden of describing returns and does so (towns plus business counts, sorted). Combined with full schema coverage and complete annotations, an agent has nearly everything needed; only edge behavior for states outside directory coverage is unaddressed.

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 all three parameters are already documented, including the defaults for limit and trade. The description's contribution is mainly the 25-mile radius that gives meaning to the returned counts and a restatement of the default appliance_repair trade; it adds no syntax or format detail beyond the schema.

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 names the resource (towns in a single U.S. state), the payload (business counts for a trade within 25 miles), and the ordering (most first), which distinguishes it from siblings like list_trades and get_town_summary. The verb 'list' is only implied by the name/title rather than the description text, but an agent can still identify the operation immediately.

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 rather than stated: the radius-plus-count framing makes clear this is a density/market-discovery call for one state. There is no explicit when-not guidance and no sibling (e.g. list_trades, get_town_summary) is named as an alternative, so the agent must infer routing from the other tool names.

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.