Skip to main content
Glama

Remove category opt-out

remove_category_opt_out
DestructiveIdempotent

Remove a category opt-out by id or email address so the address receives that category again.

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

Input Schema

NameRequiredDescriptionDefault
idNoCategory opt-out id
emailNoEmail address (alternative to id)
tenantNoRemove from this tenant's opt-outs instead of the account-wide ones. The tenant's external id (your id for that customer) or its Groundmail id
categoryNoOnly this category; omit to remove every category for the address

Output Schema

NameRequiredDescriptionDefault
okYesTrue when the request completed
deletedNoHow many opt-outs were removed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/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 covered structurally. The description adds real value by explaining the consequence ("so the address receives that category again"), but says nothing about whether the removal is auditable, whether re-opting out is required to undo it, or how tenant-scoped versus account-wide removal differs.

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?

A single front-loaded sentence with zero filler; the mutation verb and its outcome are stated before any incidental detail. Nothing in the sentence could be removed without losing meaningful content.

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?

An output schema exists, so return values need not be described, and all four parameters are fully documented in the schema. The remaining gap is that a destructive tool with tenant-scoped variants never tells the agent that supplying neither id nor email leaves the target ambiguous, despite zero required parameters.

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%, so each of the four parameters, including the tenant scoping and the category enum, is already documented. The description's mention of "by id or email address" merely restates the schema's "alternative to id" note and adds no format, precedence, or conflict-resolution detail (e.g., which wins if both are supplied).

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 names a specific verb and resource ("Remove a category opt-out") and states the resulting effect on the address, so the agent knows exactly what the call accomplishes. It does not reference the sibling list_category_opt_outs, which an agent would likely need to obtain an id, so full sibling differentiation is missing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implies usage by noting the record can be identified "by id or email address," giving the agent a hint about lookup strategies. However, there is no explicit when-to-use versus when-not guidance, no mention of how to discover the id first, and no note that the call is unnecessary if no opt-out exists.

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.