Skip to main content
Glama

Delete contacts

delete_contacts
Destructive

Delete up to 1000 contacts in one call, by ids or by email addresses (exactly one of the two). Returns the contacts actually deleted; unknown ones are skipped. Emails stay in the log; erase=true also scrubs each address from email history, like delete_contact. This cannot be undone.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "delete_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoContact ids to delete, up to 1000
eraseNoAlso erase each address from email history, event payloads and API logs (GDPR/LGPD); by default the send log is kept
emailsNoContact email addresses to delete, up to 1000; matched case-insensitively

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description adds substantial context beyond them: unknown contacts are silently skipped, the return set is only what was actually deleted, emails persist in the send log unless erase=true, and erase also scrubs event payloads and API logs (GDPR/LGPD). The 'cannot be undone' warning reinforces irreversibility.

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 dense sentences with zero filler. The batch limit and the ids/emails constraint are front-loaded, followed by return behavior and then the destructive erase semantics, so the highest-risk information lands before the agent commits.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by stating the return behavior (only actually-deleted contacts) and the skip behavior for unknown ones. Combined with the destructive and erase semantics, nothing an agent needs to invoke this safely is missing.

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 per-field detail is already documented. The description still adds the mutual-exclusion rule between ids and emails, which the schema does not encode (no oneOf), plus the practical effect of erase on email history — meaning beyond the raw field docs.

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 (delete contacts) plus batch scope (up to 1000 per call), and distinguishes itself from the singular sibling delete_contact by referencing it directly. An agent can differentiate it from delete_contact 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?

Specifies the key selection constraint — 'by ids or by email addresses (exactly one of the two)' — and references delete_contact for the single-contact case via the erase comparison. It stops short of an explicit when-not-to-use statement or a clear routing sentence to delete_contact/list_contacts.

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.