Skip to main content
Glama

Google Ads & Meta Ads

Meta: Find Locations

meta_find_locations
Read-onlyIdempotent

Look up Meta Ads locations by name and get the key each one is targeted by, with its type and the country it sits in. Use this before changing where an ad set delivers with meta_update_adset_targeting whenever you have a place name rather than a key. Countries are targeted by two-letter ISO code and need no lookup; regions, cities, zips and counties are opaque keys that only this tool can resolve. A US county is type medium_geo_area (not region) and goes in counties / add_counties on the targeting 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": {
      "query": "<query>"
    },
    "name": "meta_find_locations"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many matches to return. Default 25, at most 50.
queryYesPlace name to look up, e.g. Sydney or California.
typesNoKinds of place to return. Omit to search every kind.

Output Schema

NameRequiredDescriptionDefault
locationsYesOne row per place Meta matched.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and open-world behavior, so the safety profile is covered. Beyond that, the description discloses non-obvious domain behavior: that regions, cities, zips and counties are opaque keys resolvable only here, and that a US county resolves as medium_geo_area, not region. It stops short of covering match ambiguity or result-volume behavior, which keeps it off a 5.

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?

Four sentences, front-loaded with what the tool returns, then routing, then exclusions, then the county edge case. Each sentence supplies distinct information and none are filler, though the county sentence is dense enough to verge on run-on.

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?

An output schema exists, so return shape needn't be restated. The description supplies the workflow coupling to the targeting tool and the type-mapping quirk that an agent could not infer from the schema. Minor remaining gap: nothing about how to handle multiple matches or when to narrow with the types filter.

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 query, types and limit are already fully documented with examples and enum values. The description adds only indirect meaning about the query ('a place name rather than a key') and says nothing about the types filter or the limit cap. Baseline 3 is correct when the schema carries the parameter burden.

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 description states a specific verb and resource ('look up Meta Ads locations by name') plus what the call returns ('the key each one is targeted by, with its type and the country'). It is clearly distinguishable from the mutation sibling meta_update_adset_targeting, which it names as the downstream consumer rather than a substitute.

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 precondition ('use this before changing where an ad set delivers with meta_update_adset_targeting whenever you have a place name rather than a key') and an explicit exclusion ('Countries are targeted by two-letter ISO code and need no lookup'). The agent knows both when to call it and when calling it is wasted effort.

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