Skip to main content
Glama

Delete qURL

delete_qurl
DestructiveIdempotent

Permanently revoke a qURL so its link and all access tokens stop working immediately. Use this irreversible action to cut off access entirely for compromised links, departed users, or end-of-engagement.

Instructions

Permanently revoke a qURL — the link and every access token under it stop working immediately. This action is irreversible. Use this when you want to cut off access entirely (compromised link, departed user, end-of-engagement). It does not revoke links minted by the upload tools, which belong to the file connector; those cannot be revoked from this server. Use update_qurl instead when you only need to shorten the resource's expiration, retag, or rename, and extend_qurl to keep a link open longer — those preserve the existing access tokens. Idempotent: the API returns 404 for re-deletes, never-existed IDs, and resources owned by another API key (ownership-mismatch is collapsed into 404 server-side to avoid existence disclosure); this tool swallows all three. Branch on was_already_revoked to distinguish the no-op case from a successful revoke on this call. When the ID came from user input and ownership matters, call get_qurl first — a 200 confirms ownership; a thrown 404 is equally ambiguous on that endpoint too. Returns a confirmation payload. A revoked resource can still appear in list_qurls without a status filter; use status: "revoked" to select revoked resources.

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": {
      "resource_id": "<resource_id>"
    },
    "name": "delete_qurl"
  }
}

Input Schema

NameRequiredDescriptionDefault
resource_idYesThe resource public key, CRID, or legacy r_ ID to revoke (all tokens; q_ display IDs are not accepted).

Output Schema

NameRequiredDescriptionDefault
messageYesHuman-readable confirmation message
revokedYes
resource_idYes
was_already_revokedYesTrue when the API responded 404 (resource was already revoked or never existed). Agents that need to distinguish 'I revoked it' from 'it was already gone' should branch on this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.2.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / resource_id / description
      Previous value: -"The resource ID (must start with r_). delete_qurl does not accept q_ (qURL display) IDs."New value: +"The resource public key, CRID, or legacy r_ ID to revoke (all tokens; q_ display IDs are not accepted)."
    • removedInput schema / properties / resource_id / minLength
      Removed value: -1
    • changedInput schema / properties / resource_id / pattern
      Previous value: -"^r\\_"New value: +"^(r_[a-z0-9_-]{11}|(?:[A-Za-z0-9_-]{4}){27,53}|(?:[A-Za-z0-9_-]{4}){27,53}[A-Za-z0-9_-]{2}|(?:[A-Za-z0-9_-]{4}){26,52}[A-Za-z0-9_-]{3}|[a-z2-7]{47}|[a-z2-7]{60})$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "message": {
      +      "description": "Human-readable confirmation message",
      +      "type": "string"
      +    },
      +    "resource_id": {
      +      "type": "string"
      +    },
      +    "revoked": {
      +      "const": true,
      +      "type": "boolean"
      +    },
      +    "was_already_revoked": {
      +      "description": "True when the API responded 404 (resource was already revoked or never existed). Agents that need to distinguish 'I revoked it' from 'it was already gone' should branch on this.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "resource_id",
      +    "revoked",
      +    "was_already_revoked",
      +    "message"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds substantial non-obvious behavior: immediate irreversibility, 404 collapsing of re-deletes, never-existed IDs, and ownership mismatch, and the fact that these are swallowed. It also explains how to disambiguate outcomes via `was_already_revoked` and that a revoked resource still appears in `list_qurls` unless filtered by status.

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?

Front-loaded with the destructive, irreversible warning, then alternatives, then idempotency semantics — a sensible ordering. It is dense and slightly repetitive in the ownership-check paragraph ("a thrown 404 is equally ambiguous on that endpoint too"), but nearly every sentence carries distinct operational value.

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-parameter mutation with an output schema, this covers what matters: irreversibility, idempotent no-op signaling, error collapsing, ownership verification flow, and post-delete visibility. Return values need not be described because an output schema exists, and it still names the key branch field `was_already_revoked`.

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% and the parameter description already enumerates accepted ID forms, so the baseline is 3. The description adds operational meaning about `resource_id` that the schema cannot express: ownership is unverifiable from a delete result because 404 is collapsed, so a `get_qurl` 200 is the only ownership confirmation before deleting a user-supplied ID.

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 ("Permanently revoke a qURL") plus the exact blast radius ("the link and every access token under it stop working immediately"). It also draws explicit boundaries against `update_qurl` and `extend_qurl`, and notes what it cannot revoke (links minted by the upload tools), so an agent can separate it from siblings 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?

Gives concrete use cases (compromised link, departed user, end-of-engagement) and explicit alternatives with their conditions: `update_qurl` for expiration/retag/rename and `extend_qurl` to keep a link open, both preserving tokens. The exclusion for upload-tool links is an explicit when-not, leaving nothing to inference.

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