Skip to main content
Glama
RawTree MCP Server

RawTree MCP Server

Official
by rawtreedb

Delete API Key

delete-api-key
Destructive

Permanently revoke and delete a RawTree API key by UUID after confirming the exact key. This irreversible action removes access for services using that key.

Instructions

Purpose: Permanently revoke and delete a RawTree API key by UUID.

NOT for: Deleting a table, database, or user session.

Returns: Deletion confirmation.

Safety: You MUST list or identify the key first, ask the user to confirm the exact key name or ID, and warn that services using it will lose access. This action cannot be undone.

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": {
      "id": "<id>"
    },
    "name": "delete-api-key"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAPI key UUID to delete.
clusterNoName or ID of the cluster to use for this operation.
organizationNoName or ID of the organization containing the target cluster.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.10
    • changedInput schema / properties / cluster / description
      Previous value: -"RawTree cluster to use for this operation."New value: +"Name or ID of the cluster to use for this operation."
    • changedInput schema / properties / organization / description
      Previous value: -"RawTree organization containing the target cluster."New value: +"Name or ID of the organization containing the target cluster."
  2. Changed3 schema fields changedv0.4.9
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "API key UUID to delete.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • removedInput schema / properties / idOrApiKey
      Removed value: -{
      -  "description": "API key UUID or full rt_ API key value to delete.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "idOrApiKey"
      -]New value: +[
      +  "id"
      +]
  3. Changed5 schema fields changedv0.3.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / cluster
      Added value: +{
      +  "description": "RawTree cluster to use for this operation.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / confirm
      Removed value: -{
      -  "description": "Set to true only after the user explicitly confirms revocation of this exact API key.",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / organization
      Added value: +{
      +  "description": "RawTree organization containing the target cluster.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "idOrApiKey",
      -  "confirm"
      -]New value: +[
      +  "idOrApiKey"
      +]
  4. Changed3 schema fields changedv0.2.0
    • addedInput schema / properties / idOrApiKey
      Added value: +{
      +  "description": "API key UUID or full rt_ API key value to delete.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / idOrToken
      Removed value: -{
      -  "description": "API key UUID or full rt_ token to delete.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "idOrToken",
      -  "confirm"
      -]New value: +[
      +  "idOrApiKey",
      +  "confirm"
      +]
  5. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, and the description goes substantially further: it discloses irreversibility ("cannot be undone"), the real-world consequence ("services using it will lose access"), and a required confirmation protocol. This is exactly the extra context annotations cannot express.

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?

Labeled sections (Purpose / NOT for / Returns / Safety) make it scannable and front-loaded, with no filler sentences. The markdown bold headers add minor visual noise but each block carries distinct information.

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 single-identifier deletion with no output schema, the definition covers purpose, exclusions, return value ("Deletion confirmation"), and the safety protocol. Nothing an agent needs to invoke it responsibly is missing.

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 id, cluster, and organization are already documented including the UUID pattern. The description reinforces only the UUID identifier ("by UUID") and says nothing about cluster or organization selection, so it adds little beyond the schema.

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 pair ("Permanently revoke and delete") and a precise resource ("RawTree API key by UUID"), and explicitly scopes out table/database/user-session deletions. An agent can distinguish this from create-api-key, list-api-keys, and delete-table without opening any schema.

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

Usage Guidelines5/5

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

Provides explicit exclusions ("NOT for: Deleting a table, database, or user session") and a mandatory pre-call workflow: identify the key first (implying a list step), obtain user confirmation of the exact name/ID, and warn about downstream service impact. Both when-to-use and when-not-to-use are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.