Skip to main content
Glama

Preview Google Sheets product matching

preview_sheet_matching
Destructive

Preview Sheet Source

When to use: Google Sheets 의 매칭 입력 탭을 지금 다시 읽어, 적용하면 상품 매칭이 어떻게 바뀌는지(추가·변경·해제 옵션 수, 검증 탈락 사유) 미리 볼 때. 시트를 고친 뒤 반영하려면 이 tool 로 미리보기를 만들고, 돌려받은 last_run.run_id 로 apply_sheet_matching 을 부른다.

When NOT to use: 결과만 다시 보려면 list_sheet_matching_sources 의 last_run 을 본다 — 미리보기는 시트를 새로 읽는다.

Limitations: 반영분은 바꾸지 않는다 — 적용은 별도 도구 apply_sheet_matching 이다. 한 옵션의 구성 행 중 하나라도 검증에 탈락하면 그 옵션 전체가 반영 예정에서 빠진다. 계산 중이거나 오류인 셀(#N/A · #REF! · Loading... 등)이 있는 옵션은 탈락시키지 않고 보류해 지금 반영분을 유지한다(last_run.held_options, 사유 코드 CELL_PENDING · OPTION_HELD_BY_SIBLING). 시트를 읽지 못하면 실패로 남고 반영분은 그대로다. 이미 실행 중이면 409. 2,000행 기준 15초 안팎 걸린다. data_management:write 권한 필요.

Examples:

  • Q: 시트 매칭 입력 탭을 다시 읽어서 뭐가 바뀌는지 보여줘 params: {'path': {'data_id': 1}}

Output shape: object: {data_id, sheet, last_run{run_id, state, changes{added, modified, removed, unchanged, manual_override}, accepted_options, rejected_options, held_options, reason_counts, error}, has_pending_changes, preview_stale, union_pending, enabled, restorable}

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": {
      "data_id": "<data_id>"
    },
    "name": "preview_sheet_matching"
  }
}

Input Schema

NameRequiredDescriptionDefault
data_idYes
project-idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Far beyond the annotations, it discloses partial-failure semantics (an option is dropped entirely if any constituent row fails validation), held/pending options with reason codes (CELL_PENDING, OPTION_HELD_BY_SIBLING), failure behavior that leaves applied data untouched, a 409 when already running, ~15s for 2,000 rows, and a data_management:write permission requirement. The one tension is that destructiveHint=true while the text says the applied set is not changed; the text does signal side effects (run creation, write scope, 409), so it is not a strict contradiction, but an agent could underestimate impact if it reads only the Limitations line.

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?

Well front-loaded with labeled sections (when to use, when not to use, limitations, example, output shape), so an agent can scan quickly. Slightly over-long because the full output-shape enumeration duplicates an output schema that already exists, but the content is mostly load-bearing.

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 preview tool with real side effects, it covers workflow, failure modes, timing, auth, and concurrency, and the return shape is backed by an output schema. The remaining gap is parameter-level meaning (especially the mismatched example payload and the unexplained project-id), which matters for a 0%-coverage schema.

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% and the description only supplies an example, `{'path': {'data_id': 1}}`, whose 'path' nesting does not match the flat required `data_id` in the schema — this actively risks a malformed call. The optional `project-id` parameter is never mentioned, so the description does not compensate for the missing schema documentation.

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 concrete verb and resource: re-read the Google Sheets matching input tab and preview how product matching would change (added/modified/removed option counts, validation rejection reasons). It explicitly distinguishes itself from apply_sheet_matching (which commits) and list_sheet_matching_sources (which only re-reads last_run), so an agent can pick it without opening other schemas.

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 has explicit when-to-use and when-NOT-to-use sections that name the exact alternative and the condition selecting it ("결과만 다시 보려면 list_sheet_matching_sources 의 last_run"). It also documents the follow-up workflow: build a preview here, then call apply_sheet_matching with the returned last_run.run_id.

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