Skip to main content
Glama

Resolve business types and locations

resolve_parameters
Read-onlyIdempotent

Resolve a search query into types + locations + account permissions. Call this FIRST for any business search or export.

Returns: account (permissions), found_types (slugs), found_locations (admin zones + geo polygons).

found_locations is ordered so the first entry matches the query's shape:

  • When the query describes an administrative area (city, department/county, region/state, country), a zone entry is listed first at the matching level. Pass its params to search_businesses.

  • When the query describes a sub-administrative area (street, square, neighbourhood, custom shape), the polygon is listed first. Pass its geo_polygon to search_businesses.

When multiple polygon candidates describe the same place (e.g. city vs larger arrondissement), polygon_source="osm_admin_boundary" is more precise than "osm_bounding_box". This ranks polygons against each other only — not polygons against zones.

If no found_location matches the user's intent, call this tool again with a corrected location_query (fix spelling, singular/plural, add city name). Do not guess coordinates — always use data from this tool.

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": {
      "location_query": "<location_query>"
    },
    "name": "resolve_parameters"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNo
type_queryNo
location_queryYes

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?

Annotations declare readOnly/idempotent/non-destructive, and the description adds substantial behavior beyond them: the returned fields (account, found_types, found_locations), the ordering invariant where the first entry matches the query's shape, and the precedence rule that osm_admin_boundary beats osm_bounding_box among competing polygons. It even explains the failure mode and the corrective action, which is rare and useful.

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?

Front-loaded with the core action and the sequencing directive, then organized into a returns block and conditional bullets that map cleanly onto the agent's decision. Slightly dense in the polygon_source paragraph, where "ranks polygons against each other only — not polygons against zones" takes effort to parse, but no sentence is filler.

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 well, including ordering semantics critical for correct downstream use. The main remaining hole is that locale is undocumented, and there is no statement of what happens when type_query is ambiguous or unmatched.

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 0%, so the description must compensate. It does well for location_query (spelling, singular/plural, adding a city) and implies type_query via the types/locations split, but the locale parameter is never mentioned at all, leaving a third of the inputs with no documented meaning anywhere.

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?

States a specific verb and resource: "Resolve a search query into types + locations + account permissions." It also positions itself relative to siblings by telling the agent to "Call this FIRST for any business search or export," making the upstream role versus search_businesses 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?

Gives explicit sequencing (call first), explicit handoff ("Pass its params to search_businesses"), and an explicit recovery path (retry with a corrected location_query, fix spelling/plural/add city). It also states a prohibition: "Do not guess coordinates." This covers when, what next, and what not to do.

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