Skip to main content
Glama
get-mcp-ads

X Ads by Get MCP Ads

x ads search targeting locations

x_ads_search_targeting_locations
Read-onlyIdempotent

Search targetable locations by name to obtain targeting_value IDs needed for LOCATION-type ad targeting criteria. Supports filtering by country, location type, and pagination.

Instructions

Search targetable locations by name. Use this to find the targeting_value IDs required by add_targeting_criterion for LOCATION-type criteria. Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNoFree-text location name to search for, e.g. "united states" or "london". Omit to list locations u...
countNoNumber of records to return per page (1-1000).
cursorNoPagination cursor from a previous response.
country_codeNoTwo-letter ISO country code to scope results to, e.g. US.
location_typeNoScope results to one location granularity.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesOriginal tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds useful operational context: 'Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.' This goes beyond the annotations by warning about response field semantics and pagination behavior.

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?

Three sentences with no filler. The first sentence states the core action, the second gives the concrete use case, and the third adds behavioral nuance about pagination and micro fields. Information is front-loaded and each sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has a complete input schema, an output schema, strong annotations, and a description that clarifies purpose and response semantics. An agent has everything needed to decide when to call it, which parameters to provide, and what behavior to expect. Nothing important 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 description coverage is 100%: all five parameters have descriptive text, examples, constraints, and an enum. The description does not add parameter-level semantics beyond the schema, so the baseline 3 is appropriate. It does not need to compensate for gaps because the schema already documents each parameter clearly.

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?

The description opens with a specific verb and resource: 'Search targetable locations by name.' It then explains the purpose, finding targeting_value IDs for add_targeting_criterion, and distinguishes itself from the sibling search_targeting_interests by specifying LOCATION-type criteria. This makes the tool's role immediately clear.

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 an explicit use case: 'Use this to find the targeting_value IDs required by add_targeting_criterion for LOCATION-type criteria.' This provides clear context on when to call it. However, it does not explicitly name the alternative for non-location criteria (e.g., search_targeting_interests), so the guidance is strong but not fully explicit about when-not-to-use.

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