Skip to main content
Glama

Search Google Maps categories

mapsdata_search_categories
Read-onlyIdempotent

Search the Google Maps business categories MapsData can scrape. CALL THIS FIRST, before mapsdata_start_scrape: a scrape's query must be one of these exact categories, and a free-text guess like 'plumbing companies' is rejected.

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": "mapsdata_search_categories"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesSubstring to search for, e.g. 'plumb'.
countryNoOptional: the country you will scrape. Categories Google rarely uses there are flagged, with local alternatives (e.g. 'General contractor' in au).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / country
      Added value: +{
      +  "description": "Optional: the country you will scrape. Categories Google rarely uses there are flagged, with local alternatives (e.g. 'General contractor' in au).",
      +  "enum": [
      +    "au",
      +    "ca",
      +    "uk",
      +    "us"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, closed-world and non-destructive, so safety is settled. The description adds genuine behavioral context beyond that: the downstream query must match an exact category string, and the country parameter causes local alternatives to be flagged. It stops short of describing the result list shape, but the essential constraint is disclosed.

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, and the imperative 'CALL THIS FIRST' is front-loaded as the very first cue. The failure mode follows immediately as justification.

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 prerequisite lookup tool with no output schema and three simple parameters, the definition supplies everything needed to invoke it correctly, including ordering and failure behavior. Only the shape of the returned category list is left implicit.

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

Parameters4/5

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

Schema coverage is 67%, so the description must carry some weight, and it does: it explains that 'query' resolves against an exact category list rather than free text. The country flagging behavior is also explained in the schema itself. The 'limit' parameter gets no mention, leaving one gap.

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 ('Search the Google Maps business categories MapsData can scrape') and implicitly contrasts with the scraping siblings by being a lookup. An agent can tell immediately this is a category-discovery tool, not a scrape action.

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?

Explicit sequencing instruction ('CALL THIS FIRST, before mapsdata_start_scrape') plus the negative condition ('a free-text guess like "plumbing companies" is rejected'). This is exactly the when-to-use/when-not-to-use guidance an agent needs before invoking a prerequisite tool.

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