Skip to main content
Glama

Add to the do-not-call list

add_to_dnc
DestructiveIdempotent

Add phone numbers to this account's do-not-call list (DNC) - calls to them via make_call or create_relay_lease will then be blocked. Send exactly one of e164 (one number; returns added: true and e164) or e164s (1 to 500 numbers in one call, for example an import of unsubscribed contacts; returns addedCount, alreadyOnListCount, rejectedCount and rejected). With e164s an entry that is not a valid phone number is reported in rejected (position, input, reason invalid_number) while the valid entries of the same call are still added. Adding is idempotent: a number already on the list is only counted in alreadyOnListCount. Same data as POST /v1/dnc (response schema in /openapi.json).

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": "add_to_dnc"
  }
}

Input Schema

NameRequiredDescriptionDefault
e164NoOne phone number to add to the do-not-call list, in E.164 format with the country code, for example +420777123456. Send either this or e164s, not both.
e164sNoUp to 500 phone numbers to add in one call, in E.164 format with the country code, for example ["+420777123456", "+420777654321"]. Send this instead of e164, not together with it. A number that cannot be read is listed in rejected, the others are still added.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description's added value is in the details: partial success semantics (invalid entries go to 'rejected' while valid ones are still added), idempotent duplicate handling via alreadyOnListCount, and the effect of blocking future calls. It stops short of stating permission/scope requirements or whether the list is account-wide beyond 'this account's'.

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-loads purpose and the blocking consequence, then moves to parameter choice, error handling, idempotency, and the underlying REST endpoint. Dense but nearly every clause carries information; the endpoint mapping at the end is the least essential part.

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 documenting the response fields for both modes (added, e164, addedCount, alreadyOnListCount, rejectedCount, rejected) and the rejected-entry structure with reason invalid_number. An agent has everything needed to call it and interpret results.

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 states the E.164 format, the 1-500 bound, and the either/or exclusivity. The description adds the return shape each parameter triggers (added/e164 vs addedCount/alreadyOnListCount/rejectedCount/rejected) and an example use case, but that is return-value meaning rather than deeper parameter semantics.

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 ('Add phone numbers to this account's do-not-call list (DNC)') and immediately names the downstream consequence for calls made via make_call or create_relay_lease. This separates it cleanly from list_dnc and remove_from_dnc.

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 description explains the operational context (blocking outbound calls through make_call/create_relay_lease) and the mutually exclusive choice between e164 and e164s, plus a bulk-import scenario for e164s. It does not explicitly say when to prefer this over siblings like list_dnc or remove_from_dnc, but the usage trigger is clear.

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.