Skip to main content
Glama

Plan a plain-English question

plan_question
Read-onlyIdempotent

Map a plain-English question about a US place or area to the tool that answers it, that tool's exact arguments (fields, preset, filters, feature types) and the estimated lookup cost. Plan only: nothing runs and nothing is charged (0 lookups). ask is the same planner plus execution, charged like the tool it calls; the returned tool name and arguments can also be passed to that tool directly. Planning uses deterministic rules and the field catalog, no language model. Output: plan with tool, arguments, estimated_lookups, explanation, matched (the topics and keywords that set the arguments), needs (what is missing, such as location or state), ready (true when needs is empty) and confidence (high, medium or low). A question with no recognised topic falls back to the general site_selection preset with needs_clarification and low confidence. Cost: Free (0 lookups).

Input Schema

NameRequiredDescriptionDefault
latNoWGS84 latitude in decimal degrees (e.g. 30.2672), paired with lng. Optional: the place, when the question does not name it; lat+lng or address, not both.
lngNoWGS84 longitude in decimal degrees (e.g. -97.7431, negative in the US), paired with lat.
addressNoUS street address with city and state (e.g. '350 5th Ave, New York, NY'), geocoded by the US Census geocoder along the street. An alternative to lat+lng; giving both is an invalid_locator error.
questionYesThe question, 3 to 500 characters (e.g. 'flood zone and elevation at 1600 Pennsylvania Ave, Washington DC' or 'parcels over 40 acres in Travis County TX').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: no execution, zero lookups charged, deterministic rule-based planning with no language model, and the fallback to site_selection with needs_clarification and low confidence. That last piece is behavior an agent could not infer from annotations and materially affects how it should interpret results.

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?

Purpose and the plan-vs-execute distinction are front-loaded, and most sentences carry weight. The middle output-field enumeration reads as a dense run-on and could be tightened, but it is doing real work given there is no output schema.

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, the description compensates by enumerating the return shape (tool, arguments, estimated_lookups, explanation, matched, needs, ready, confidence) and the degradation behavior. Cost, determinism, and prerequisites are all covered, so an agent has everything needed to call and interpret it.

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% and the schema itself already explains lat/lng pairing, the address alternative, and the mutual-exclusion error. The description adds nothing about any of the four input parameters, so the baseline of 3 is appropriate.

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?

Uses a specific verb and resource ('Map a plain-English question ... to the tool that answers it') and immediately scopes it as planning-only rather than execution. It explicitly distinguishes itself from the sibling `ask` ('the same planner plus execution'), so an agent can pick between them without reading either schema.

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?

States the when ('Plan only: nothing runs and nothing is charged') and names the alternative with its trade-off ('ask is the same planner plus execution, charged like the tool it calls'). It also gives the fallback path for questions with no recognised topic, leaving no ambiguity about selection.

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