Skip to main content
Glama

Delete Contact (preview, then confirm)

delete_contact
DestructiveIdempotent

Delete a contact by ID. This removes the contact permanently, and the account only allows it 7 days after the contact was added. Needs contact_id; shows a preview first and deletes only with confirm: true.

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": {
      "contact_id": "<contact_id>"
    },
    "name": "delete_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoMust be true to make the change. Leave it out first to get a preview, show it to the user, and ask them to confirm
dry_runNoShow what would be deleted without deleting
contact_idYesContact ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "Must be true to make the change. Leave it out first to get a preview, show it to the user, and ask them to confirm",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / contact_id / description
      Previous value: -"Contact ID,required"New value: +"Contact ID"
  2. Changed2 schema fields changed
    • removedInput schema / properties / api_key
      Removed value: -{
      -  "description": "MailerCloud API key",
      -  "type": "string"
      -}
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "Show what would be deleted without deleting",
      +  "type": "boolean"
      +}
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is known; the description still earns credit by disclosing permanence ('removes the contact permanently') and a non-obvious account-level constraint (only allowed 7 days after the contact was added). It does not say what the preview returns or whether removal cascades to lists/segments.

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?

Three short sentences, front-loaded with the action, then the risk, then the required workflow — no filler. The clause 'the account only allows it 7 days after the contact was added' is slightly awkwardly worded but still parses correctly on first read.

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 three-parameter tool with rich annotations and no output schema, the description covers permanence, the eligibility window, and the two-step confirmation protocol. The remaining gap is what the preview payload shows and any side effects on list memberships, which an agent would likely need before showing the preview to a user.

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 100% and the schema already explains confirm and dry_run in detail, so the baseline of 3 applies. The description reinforces the confirm gate and names contact_id as required but adds no syntax, format, or semantics beyond what the structured fields already provide.

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?

The description opens with a specific verb+resource ('Delete a contact by ID') and the title flags the preview/confirm nature of the operation, so it is immediately distinguishable from update_contact, get_contact, or delete_segment. It stops short of naming a sibling or contrasting behavior, but the resource noun alone does most of the disambiguation work.

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?

It gives a concrete procedure — call without confirm to get a preview, then call again with confirm: true — plus the eligibility precondition that the contact must be at least 7 days old. It does not state what to do when the 7-day rule fails or point to an alternative tool (e.g. suppressing rather than deleting), so exclusions are absent.

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