Skip to main content
Glama

Adbloop Meta Ads

search_locations

Read-only

Search Meta locations for city/state/PIN-code targeting (e.g. 'Ahmedabad', 'Gujarat', '380015'). Returns each place's key, name, type (city/region/zip) and country, to use in geoLocations on create_campaign, create_structured or bulk_create_campaigns. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
queryYesCity, state or PIN/ZIP code.
country_codeNoOptional 2-letter country filter, e.g. IN.
location_typesNoDefaults to all three.
meta_account_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint and destructiveHint, so 'Read-only' only confirms them. The valuable addition is the disclosure of returned fields (key, name, type, country) and their intended consumer, which matters because there is no output schema. Rate limits, result caps and pagination are still unstated.

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, front-loaded with the verb and scope, then the return shape and consumer. Nothing is repeated for its own sake and 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 compensates by listing the returned fields and where their keys are consumed, which is the critical information for this lookup tool. The unexplained meta_account_id and the absence of any result-size guidance are the remaining minor gaps.

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 75%, so most parameters are already self-documenting. The description's examples ('Ahmedabad', 'Gujarat', '380015') add a little meaning to query and it names the result fields, but meta_account_id and the default behavior of location_types are left entirely to the schema.

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?

The definition names a specific verb and resource ('Search Meta locations') and scopes it to geo targeting, with concrete query examples. It doesn't distinguish itself from the sibling search_targeting tool, which is the only thing keeping it from a 5.

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?

It clearly says what the results are for: feeding keys into geoLocations on create_campaign, create_structured or bulk_create_campaigns, which is concrete downstream guidance. It offers no exclusion or 'use X instead when...' clause relative to search_targeting, so the when-not case is unstated.

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