Skip to main content
Glama

Get changes since last restore point

get_pending_changes
Read-only

Get Pending Diff

When to use: 마지막 체크포인트 이후 아직 스냅샷에 없는 변경(pending)이 라이브 원본과 비교해 정확히 무엇인지 볼 때. pending 배너의 '변경 보기'에 대응한다.

Limitations: entity_type/entity_id 는 등록된 조합만 허용(미등록 시 400, fail-closed): item_relation+'-'(상품 매핑), item_relation+AI(AI 추천 매핑), data_mapping+ITEM(상품 매핑 규칙), data_mapping+AD(광고 매칭 규칙), url_mapping+'-'(URL 매핑), ad_relation+'-'(광고 매칭), cogs+'-'(기초상품 원가), fee_history+'-'(판매 수수료 이력). entity_id 기본값은 '-'. limit 1~1000(기본 100). 이건 복원 지점이 아니다 — 라이브 상태 기준 '지금 이 순간' 스냅샷이라 재현되지 않는다. 되돌리려면 먼저 create_restore_point 로 물질화해야 한다.

Examples:

  • Q: 상품 매칭에서 마지막 복원 지점 이후 바뀐 내용 보여줘 params: {'query': {'entity_type': 'item_relation', 'entity_id': '-'}}

Output shape: PendingDiffRes: VersionDiffRes 와 같은 columns/rows/summary 모양 + pending_change_count + absent_from_source/absent_from_archive

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": {
      "entity_type": "<entity_type>"
    },
    "name": "get_pending_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
entity_idNo세부 범위 (ITEM/AD/'-')-
project-idNo
entity_typeYes스코프 — 대상 엔티티 타입

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond readOnlyHint/destructiveHint, the description discloses the fail-closed 400 behavior for unregistered entity_type/entity_id combinations, the enumerated whitelist of valid pairs, the default entity_id of '-', and the limit bounds. Most importantly it warns that the result is a point-in-time live snapshot that cannot be reproduced later — a behavioral trait no annotation conveys.

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?

Front-loaded with title, when-to-use, limitations, example, and output shape, and every block carries information. It is dense and mixes English with Korean, which costs some readability, but no sentence is filler.

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 read-only, filter-scoped query tool with an output schema, the definition covers purpose, valid parameter combos, failure mode, and the non-reproducibility caveat. Pagination behavior across offset/limit and authentication expectations are the remaining unwritten pieces.

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

Parameters4/5

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

Schema coverage is only 40%, so the description must compensate: it enumerates every allowed entity_type value with its matching entity_id, states the '- ' default, and gives the limit range and default. It leaves offset and project-id undocumented, which keeps it short of a 5.

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 names a specific verb and resource (pending diff since the last checkpoint) and explicitly frames it as a live-state snapshot rather than a restore point, which separates it from the restore-point diff siblings. An agent can distinguish it from get_restore_point_diff without opening either 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 'When to use' line gives a concrete trigger (viewing pending changes vs. the live source, corresponding to the 'view changes' banner) and the Limitations section states the fail-closed constraint. It also routes the agent to create_restore_point when the intent is rollback, though it does not name get_restore_point_diff as the alternative for viewing historical snapshots.

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