Skip to main content
Glama

Meta ads: Find locations

meta_find_locations
Read-onlyIdempotent

Find Meta location keys for ad set targeting: cities, regions (states), ZIP codes and countries. Use before meta_build_campaign or meta_create_ad_set; a city can then take a 10-50 mile radius.

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
queryYese.g. 'Salem, Oregon', '97301', 'Snohomish'
typesNo
countryNoTwo-letter country code to narrow it, e.g. US

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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, openWorld and non-destructive, so safety is covered. The description adds real behavioral value by explaining that the output is location *keys* used for targeting and that a city key can be expanded to a 10-50 mile radius — context an agent needs to chain the call. It does not discuss result multiplicity (a query may match several places) or what happens on zero matches.

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 short sentences with no filler: what it returns first, when to call it second. The prerequisite relationship is front-loaded and the radius detail is a useful addendum rather than padding.

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 three-parameter read-only lookup with no output schema, the description covers purpose, ordering, and the shape of the result well enough to invoke it correctly. The only gap is post-call behavior — how to disambiguate multiple matches or handle an empty result — which an agent may need when chaining into meta_create_ad_set.

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

Parameters5/5

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

Schema coverage is only 67% — the 'types' array has no description in the schema — and the description compensates by enumerating exactly the accepted location kinds (cities, regions/states, ZIP codes, countries), which maps directly onto the enum values. The 'country' narrowing parameter is documented in the schema, and the example-style query forms are covered by the schema's examples.

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?

States a specific verb and resource ('Find Meta location keys') plus the exact resource subtypes (cities, regions, ZIP codes, countries) and the downstream use ('ad set targeting'). This is enough to separate it from sibling creation tools like meta_create_ad_set, though it never explicitly contrasts with ads_find_locations, the other location-lookup sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete sequencing guidance: 'Use before meta_build_campaign or meta_create_ad_set', which tells the agent this is a prerequisite lookup rather than a standalone action. It also notes that a resolved city can take a 10-50 mile radius, implying the follow-up step. No when-not-to-use guidance or mention of what to do when a query is ambiguous.

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.