Skip to main content
Glama

ChatGPT Ads location lookup

chatgpt_ads_geo_lookup
Read-only

Search locations by name (a country, region or city) and get the ids, types and country codes you can use in campaign targeting. Needed for city or region targeting; a country only needs its two-letter code.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMost results (default 10, max 50).
queryYesPlace name to search, e.g. 'Dublin' or 'New York'.
accountIdNoThe ChatGPT Ads ad account id, as listed by chatgpt_ads_list_ad_accounts. A connection reaches one ad account, so this is normally left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered structurally. The description adds useful value by disclosing what comes back (ids, types, country codes) in the absence of an output schema. It says nothing about match ambiguity (multiple 'Dublin's), result ordering, or the default result cap beyond what the schema states.

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 tight sentences with zero filler, and the primary purpose and return value are front-loaded before the targeting caveat. Every clause carries information an agent would act 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?

For a read-only lookup with three fully described parameters and no output schema, the description covers purpose, output shape, and the key decision of when the call is needed. Minor gaps remain around ambiguous-name handling and whether results are ranked, but nothing required for correct invocation is missing.

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 all three parameters are documented in the schema itself, and the description does not restate limit or accountId. It does add a nuance about the query parameter — that a country can be resolved with just its two-letter code, making the lookup unnecessary. With the schema doing the heavy lifting, baseline 3 applies.

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 description opens with a specific verb+resource pair, 'Search locations by name', and enumerates the accepted granularity (country, region, city) plus the return payload (ids, types, country codes). That is enough to tell it apart from report-oriented siblings such as msads_get_location_performance, but it never names a sibling explicitly, so it stops short of 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 gives a genuine when-to-use and when-to-skip rule: 'Needed for city or region targeting; a country only needs its two-letter code.' That prevents a wasted call for the country case. No alternative tool is named for the country case, which keeps it out of 5 territory.

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