Skip to main content
Glama

chatgpt_ads_locations_search

Read-only

Searches the ChatGPT Ads location catalog by name to find location IDs for campaign targeting. Use returned IDs in include or excluded locations, or ISO country codes for whole countries.

Instructions

Searches the ChatGPT Ads location catalog by name. Returns the platform object unchanged: query, count and results with id, name, canonical_name, type, country_code and parent fields. Read-only. Pass a result's id in targeting.locations.include (or excluded_locations) of chatgpt_ads_campaigns_create; whole countries use ISO codes in targeting.locations.countries instead.

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_locations_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results. Default 20. Maximum 100.
queryYesLocation name or part of it (e.g. 'California'), up to 200 characters, not all spaces.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.46.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the 'Read-only' sentence adds nothing, but the description discloses the return shape (query, count, results with id, name, canonical_name, type, country_code, parent) even though no output schema exists. It does not mention matching behavior (fuzzy vs. prefix), result ordering, or how limit truncates results.

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?

Front-loads purpose, then return shape, then how to consume the ids — a logical order with no filler. The enumerated field list is slightly dense but earns its place given there is no output schema.

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 simple two-parameter lookup with no output schema, the definition covers purpose, return fields, and the hand-off into campaign creation. Remaining gaps (match semantics, ordering, the meaning of the 'type' and 'parent' fields) are minor for a read-only search.

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% and both parameters are documented in the schema (query minLength/maxLength/pattern, limit min/max/default), so the baseline of 3 applies. The description only reinforces that query is a name and that countries are handled via ISO codes elsewhere; it adds little parameter-level meaning beyond the schema.

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?

Uses a specific verb plus resource plus scope: 'Searches the ChatGPT Ads location catalog by name.' That is distinct from the ad-group, ad, and campaign siblings, and from the unrelated search_console/google/meta tools, without needing to name them.

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?

Explains the downstream workflow precisely: take a result's id into targeting.locations.include or excluded_locations of chatgpt_ads_campaigns_create, and use ISO country codes in targeting.locations.countries for whole countries. It does not say when *not* to use it or compare it against another location-search tool, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools