Skip to main content
Glama

Delete contact

contacts_delete
Destructive

Delete an iCloud contact by ID and last-read etag; the card is re-read and compared before deletion to reduce stale-write risks.

Instructions

Deletes a contact. Needs the etag from the last read. iCloud ignores the etag on delete, so the card is read again and compared first; a small race window remains between that read and the delete.

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": {
      "id": "<id>",
      "etag": "<etag>"
    },
    "name": "contacts_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesOpaque id.
etagYesThe `etag` from the last read.

Output Schema

NameRequiredDescriptionDefault
deletedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the destructiveHint annotation: it discloses that iCloud ignores the etag on delete, that the card is re-read and compared as a compensating check, and that a race window remains. That is exactly the kind of safety-relevant behavior an agent cannot get from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action, then precondition, then the caveat. Every clause carries information; nothing is repeated from the annotations or schema verbatim.

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?

Covers the essential prerequisite and the concurrency caveat, and an output schema exists so return values need no explanation. Minor omissions remain: whether deletion is idempotent, what happens on a stale/mismatched etag, and any permission requirements.

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 100%, so the baseline is 3, but the description adds real semantics about the etag parameter: it is the value from the last read and is not actually trusted as a precondition by the backend. It adds nothing about 'id' beyond the schema.

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?

Opens with a specific verb and resource ('Deletes a contact'), which separates it cleanly from the verb-differentiated siblings (contacts_get, contacts_update, contacts_create). It does not name any sibling explicitly, so it stops short of top marks.

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?

'Needs the etag from the last read' establishes a concrete precondition that tells the agent it must read the card first, which is real usage guidance. It gives no when-not-to-use or alternative (e.g. group membership removal) guidance, so it is a clear 4 rather than a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.