Skip to main content
Glama

Sergio by Serviche

Undo a logged contact change

undo_contact_change
Idempotent

Undoes one logged contact change from its Activity Log row, as the row's Undo does: restores the old values of an edited contact, puts a Quo card back to how it was, or splits a merged contact back out. activity_id comes from read (entity activity log). force undoes anyway when a later change conflicts (the row answers conflict without it). Pass the same idempotency_key when retrying; a repeat answers already_undone with the first undo.

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": {
      "activity_id": "<activity_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "undo_contact_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
activity_idYes
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations it discloses what actually changes (old values restored, card reverted, merge split), the conflict outcome when force is omitted, and the exact already_undone response on retry. This matters because destructiveHint=false could otherwise leave an agent unsure whether a split-merge undo is recoverable; the description clarifies the reversible-undo nature.

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?

Purpose and effects come first, followed by the id source, the force rule, and retry guidance — all necessary content with no filler. The effects clause is densely packed into one sentence, and "as the row's Undo does" is mildly redundant, but nothing is 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 3-param, no-output-schema mutation tool, the definition covers id sourcing, the override flag, conflict behavior, and retry semantics. Smaller gaps remain: no mention of required permissions, and no indication of what a successful response contains or whether the undo is itself logged as a change.

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

Parameters5/5

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

Schema coverage is only 33%, but the description supplies the missing meaning for both undocumented params: activity_id is the Activity Log row id obtained from read (entity activity log), and force overrides a later-change conflict. It also reinforces idempotency_key's retry semantics in operational terms, fully compensating for the coverage gap.

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?

States a specific verb and resource ("Undoes one logged contact change from its Activity Log row") and enumerates the three concrete effects: restoring edited values, reverting a Quo card, and splitting a merged contact. The phrase "one logged contact change from its Activity Log row" distinguishes it from sibling undo tools like undo_email_fact_correction by tying it to the activity-log id.

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?

Explains where activity_id comes from ("read (entity activity log)") and when to add force — only when a later change conflicts, noting the row answers with conflict otherwise. It also states the retry protocol (same idempotency_key, repeat answers already_undone). No explicit when-not-to-use or limits on how old a change can be, so it falls short of a 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