Skip to main content
Glama

consents_revoke

Stop a consent record counting (the person withdrew consent, or it was recorded by mistake). The record is kept for the audit trail. An unsubscribe or opt-out reply revokes consent automatically. Idempotent.

Method: POST /api/v1/workspaces/{workspace_sqid}/consents/{sqid}/revoke/

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": {
      "sqid": "<sqid>"
    },
    "name": "consents_revoke"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes
reasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the record is retained for audit (i.e., not deleted), that the operation is idempotent, and even the underlying endpoint. It omits permission/auth requirements and whether an already-revoked record returns an error or a success payload.

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?

Two short, front-loaded sentences deliver the essential semantics, and the trailing method line adds locatable context without bloat. Nothing is padded, though the endpoint line could be dropped with little loss.

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

Completeness3/5

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

For a simple two-parameter mutation with no output schema, the behavioral story (audit retention, idempotency) is solid, but an agent still lacks any explanation of what to pass for 'sqid' and 'reason' and what a successful response contains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so both parameters are undocumented in structured form. The description never explains that 'sqid' is the consent record identifier (only inferable from the path template) and says nothing at all about the optional 'reason' field or its 200-character limit.

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 gives a concrete verb and resource — 'Stop a consent record counting' — and clarifies the real-world meaning (withdrawn consent or mistaken entry). It is clearly distinct from read/create siblings like consents_get and consents_create, though it never explicitly contrasts with consents_bulk.

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 states the two situations that warrant a revoke (withdrawal or data-entry error) and notes that unsubscribe/opt-out replies revoke automatically, which implicitly tells the agent when manual invocation is unnecessary. It stops short of naming consents_bulk as the alternative for multi-record revocation.

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.