Skip to main content
Glama

set_privacy_state

DestructiveIdempotent

Block, deactivate or anonymise a lead or contact — or set it back to active. IRREVERSIBLE for 'anonymised': the name, address and contact fields are overwritten and cannot be recovered, while ids, tenant, links and timestamps stay so the case remains countable. Because the audit trail records old AND new values, anonymising deliberately records only THAT it happened — otherwise the trail would be the copy that undoes the erasure. 'blocked' and 'deactivated' change no data; they stop any sending. All three states stop sending regardless of the tenant's enforcement switch.

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": {
      "state": "<state>"
    },
    "name": "set_privacy_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYesNew privacy state; anonymised is irreversible
reasonNoReason (free text)
lead_idNoID of the lead
contact_idNoID of the contact
confirm_irreversibleNoRequired as true for state='anonymised'. Without it the call is refused — an irreversible erasure must not happen because someone passed the wrong string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
    • addedInput schema / properties / reason / description
      Added value: +"Reason (free text)"
    • addedInput schema / properties / state / description
      Added value: +"New privacy state; anonymised is irreversible"
  2. First observed

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 idempotentHint=true, but the description adds substantial context beyond them: exactly which fields anonymisation overwrites, which fields (ids, tenant, links, timestamps) survive so counts remain valid, and the deliberate audit-trail consequence that only the fact of erasure is logged. It also discloses that all three states suppress sending regardless of the tenant's enforcement switch, which no annotation conveys.

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?

Four tight sentences, front-loaded with the action and the state list, then the irreversibility warning, then the audit-trail rationale, then the low-risk state semantics. No filler; each sentence contributes a distinct fact an agent needs before calling.

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?

For a destructive five-parameter mutation with no output schema, the description covers the safety profile, data-survival boundary, audit implications and guard-parameter rationale. Nothing material an agent needs in order to invoke it correctly 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 the baseline is 3; the description earns above that by explaining the concrete effect of the 'anonymised' enum value (name, address and contact fields overwritten and unrecoverable) and reinforcing why confirm_irreversible exists. It still doesn't clarify the lead_id vs contact_id selection rule, which the schema leaves implicit.

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?

The description states a specific verb set (block, deactivate, anonymise, restore to active) against a specific resource (lead or contact) and enumerates all four target states. An agent can tell this apart from sibling tools like set_consent or set_ai_privacy_rules because the object is an individual record's privacy status, not tenant-level rules.

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 clearly frames when each state applies and what each one does ('blocked' and 'deactivated' change no data; they stop any sending), plus the hard prerequisite that anonymised requires confirm_irreversible. It does not explicitly route the agent away from the nearest alternatives such as set_consent, so it falls just short of full when/when-not guidance.

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.