Skip to main content
Glama

Find OpenAI Ads target locations

openai_ads_geo_lookup
Read-only

Searches locations to target (country down to postal code) and returns their ids, the ids openai_ads_create_campaign takes in locationIds. 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": "openai_ads_geo_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results.
queryYesPlace searched, e.g. "Lyon".
accountIdNoFezola accountId of the OpenAI Ads account (type openai_ads in list_accounts or openai_ads_list_accounts). Optional when only one is connected.
countryCodeNoISO country code restricting the search (FR, US...).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.9/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 'Read-only' adds nothing. The one genuinely new behavioral fact is the return contract (location ids for downstream use); nothing is said about match quality, ambiguity, or result ordering. Modest but real value beyond annotations.

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?

A single front-loaded sentence with the resolution range and the downstream id contract; no redundant wording. The trailing 'Read-only' is wasted given the annotation but is only two words.

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?

No output schema exists, and the description correctly compensates by stating that ids are returned and who consumes them. With a fully described 4-parameter schema and annotations covering safety, only minor gaps (result ordering, no-match behavior) remain.

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 description coverage is 100%, so query, countryCode, limit and accountId are all fully documented in the schema. The description only implies that results can be narrowed from country to postal code, which is not in the schema text but adds little practical guidance per parameter. Baseline 3 applies.

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?

Specific verb ('searches locations to target'), resource, and resolution range ('country down to postal code'). It is clearly a lookup tool feeding campaign creation, so it is distinguishable from the mutation siblings without opening the schema.

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?

The description embeds the usage contract: results are the ids that openai_ads_create_campaign accepts in locationIds, which tells the agent this is the resolution step before campaign creation. It stops short of explicit exclusions (e.g., when not to use it, or what to do if no match is found).

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