Skip to main content
Glama

Search ad product matches

search_ad_relations
Read-only

Search Ad Relation

When to use: 광고 소재↔상품 연결(relation)을 광고채널·캠페인·소재·상품·매핑여부 등 필터와 페이지네이션으로 검색할 때.

Limitations: 조회 전용 POST(query-by-body). body 로 필터(ad_channel_names·campaign_id_or_name·is_product_mapped 등)와 페이지네이션(limit/offset)을 넘긴다. data_management:read 권한 필요.

Examples:

  • Q: 아직 상품에 매핑되지 않은 광고 소재 50개만 찾아줘 params: {'body': {'is_product_mapped': False, 'limit': 50}}

Output shape: list: 검색된 광고 소재↔상품 연결 행

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_ad_relations"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoASC
limitNo
offsetNo
order_byNo
priorityNo
shop_idsNo
product_idNo
project-idNo
landing_urlNo
mapping_nameNo
product_nameNo
ad_id_or_nameNo
rule_conditionNo
ad_channel_namesNo
adset_id_or_nameNo
is_product_mappedNo
mapped_cnt_bucketsNo
campaign_id_or_nameNo
ad_account_id_or_nameNo
end_date_for_first_adNo
relation_provider_typeNo
relation_provider_typesNo
start_date_for_first_adNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, yet the description still adds real value: it discloses that reads are issued as a POST with a query body, and that the caller needs the data_management:read permission. Those are non-obvious facts an agent would otherwise only discover by failing. It does not disclose rate limits or result caps.

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?

The definition is short and well-segmented into when-to-use, limitations, example, and output shape, with the scoping information front-loaded. The redundant 'Search Ad Relation' heading merely restates the title and could be dropped, and the Korean/English mixing slightly slows scanning, but there is little padding.

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

Completeness2/5

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

For a 23-parameter search tool with zero schema description coverage, the description covers only a fraction of the surface and misdescribes the call shape as a nested body. The existence of an output schema excuses it from explaining returns, and the permission note is genuinely useful, but an agent cannot construct a correct call from what is given.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 23 parameters, so the description must carry the burden, but it only names about five of them (ad_channel_names, campaign_id_or_name, is_product_mapped, limit, offset) and leaves the other eighteen — including sort, order_by, priority, shop_ids, product_id, project-id, mapping_name, rule_condition, mapped_cnt_buckets — undocumented anywhere. Worse, it instructs the agent to pass filters inside a 'body' object and the example shows {'body': {...}}, while the actual input schema is flat top-level properties; following the description would produce a malformed call.

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 names a specific verb+resource (search ad creative↔product relations) and scopes it to a filtered, paginated query. It is clear enough to distinguish from mutation siblings like update_ad_relation or delete_ad_relation, but it never contrasts itself with the closest read sibling, search_item_relations, which an agent could easily conflate.

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?

A dedicated 'When to use' block states the retrieval scenario (filtering by ad channel, campaign, creative, product, mapping status, plus pagination), and a concrete Q/A example demonstrates a realistic invocation. There is no explicit when-not-to-use guidance or named alternative for adjacent read tools, so it stops short of 5.

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