Skip to main content
Glama

Social Media Search API — Twitter, Instagram, Reddit, TikTok (XPOZ)

revokeAgentAccessKey

DestructiveIdempotent

Revoke one agent access key by id; it stops working immediately. Does NOT affect the primary key or other agent keys. Returns: id, revoked.

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": {
      "keyId": "<keyId>"
    },
    "name": "revokeAgentAccessKey"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyIdYesAgent key id from listAgentAccessKeys or createAgentAccessKey.
feedbackNoOptional. Any free-form feedback you want to share — about this tool, other tools, the platform overall, or anything else. Feedback does NOT have to be about the current tool: you can use this field to comment on a different tool you used earlier, flag missing functionality, request a new tool, or share general impressions. Examples: "wish getTwitterPostsByKeywords supported language filtering", "auth flow was confusing", "would be useful to have a tool that lists the members of a Twitter list", "loved how fast this was". Captured for product feedback; does not affect tool behavior.
_requestIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description still adds real value beyond them: immediate cessation of the key's operation, the blast radius (no effect on primary or other keys), and the return shape (id, revoked), which matters since no output schema exists. It does not say what happens if the key is already revoked or never existed.

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?

Two tight sentences, front-loaded with the action and effect, followed by the scope constraint and return shape. No redundant or filler wording.

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?

For a single-parameter destructive mutation with annotations covering the safety profile, the definition supplies the essential behavioral facts plus return values. The only material gaps are error behavior on re-revocation and any permission requirements, which are minor for this tool's complexity.

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 coverage is 67% and the keyId property already documents its provenance ("Agent key id from listAgentAccessKeys or createAgentAccessKey"), which the description only restates as "by id." The description adds no format, validation, or edge-case meaning beyond the schema, so the baseline 3 applies.

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 ("Revoke one agent access key by id") with an immediate-effect note, and explicitly delimits scope against related keys: "Does NOT affect the primary key or other agent keys." That scope statement lets an agent distinguish this from sibling management tools like createAgentAccessKey or checkAccessKeyStatus.

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?

Context of use is clear from the name and the 'by id' framing, and the exclusion of the primary key tells the agent when this tool is NOT appropriate. It stops short of explicitly saying what to do first (list keys, verify status), leaving that to inference from the keyId schema description.

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.