Skip to main content
Glama

Recalculate ad matching results

refresh_ad_relation
Destructive

Refresh Ad Relation

When to use: 광고 매칭 규칙을 고친 뒤 그 결과를 파생 테이블(commerce_union_ad_relation)에 반영해 화면 수치를 갱신할 때.

When NOT to use: 규칙을 고치지 않았다면 호출할 이유가 없다(비싼 no-op). 개별 연결만 바꿨다면 delete_ad_relation 이 재계산을 이미 자동 트리거한다.

Limitations: ⚠️ 되돌릴 수 없다 — 파생 테이블 재계산이라 데이터 관리 이력·복원 지점의 대상이 아니다: 이력에 남지 않으며 복원 지점으로 돌아갈 수도 없다(원본인 광고 소재↔상품 연결(ad_relation) 자체는 그것을 고치는 각 도구가 따로 이력에 남긴다). 전체 재계산이라 무겁다 — 규칙을 여러 개 고칠 거면 마지막에 한 번만 호출한다. force=true 는 캐시를 무시하고 강제 재계산한다. data_management:write 권한 필요.

Examples:

  • Q: 광고 규칙 바꾼 거 이제 반영해줘 params: {'query': {'force': False}}

Output shape: no content (성공 시 body 없음)

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

Input Schema

NameRequiredDescriptionDefault
forceNo
project-idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, and the description reinforces this with concrete consequences: the derived-table recalculation is not captured in data-management history and cannot be restored from a restore point, while the source ad_relation table is logged by the tools that modify it. It also discloses cost (full recalculation is heavy), the force=true cache bypass, the required data_management:write permission, and that success returns an empty body — all beyond what annotations provide.

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 description is sectioned and front-loaded — purpose, when to use, when not to use, limitations, example, output shape — so an agent can scan the decision-relevant parts first. It is somewhat verbose (warning emoji, long parenthetical about history/restore points restating irreversibility twice), but nothing is truly wasted.

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 destructive, no-output mutation tool, the description covers the essentials: irreversible effects, cost and batching advice, permission requirement, force semantics, and an explicit statement that success returns no body. The main gap is the undocumented project-id parameter and the mixed Korean/English prose, which may slow parsing for an English-only agent.

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 0%, so the description must carry the parameter burden. It explains force=true as ignoring the cache and forcing a full recompute, and the example shows force passed inside a query object, but the project-id parameter is never mentioned, leaving half the parameters undocumented in both schema and description.

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 states a specific verb+resource: recompute ad-matching results and write them into the derived table commerce_union_ad_relation. It also distinguishes itself from siblings by naming delete_ad_relation and explaining that individual link edits already auto-trigger recalculation, so an agent can tell it apart from update_ad_relation/delete_ad_relation without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use (after editing ad matching rules, to push results to the derived table and refresh on-screen numbers), explicit when-NOT-to-use (if rules weren't changed it's an expensive no-op; use the per-link tools if only individual links changed), and names the alternative tool that already handles that case. It also advises batching multiple rule edits into one final call.

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