Skip to main content
Glama

delete_qurl

Revoke a qURL by providing its resource ID to immediately invalidate the link and prevent further access.

Instructions

Revoke/delete a qURL. This immediately invalidates the link.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
resource_idYesThe resource ID (must start with r_). delete_qurl does not accept q_ (qURL display) IDs.

Implementation Reference

  • The deleteQurlTool factory returns the MCP tool definition including the handler function that calls client.deleteQURL and returns a text confirmation message.
    export function deleteQurlTool(client: IQURLClient) {
      return {
        name: "delete_qurl",
        description: "Revoke/delete a qURL. This immediately invalidates the link.",
        inputSchema: deleteQurlSchema,
        handler: async (input: z.infer<typeof deleteQurlSchema>) => {
          await client.deleteQURL(input.resource_id);
          return {
            content: [
              {
                type: "text" as const,
                text: `qURL ${input.resource_id} has been revoked.`,
              },
            ],
          };
        },
      };
    }
  • Zod schema ('deleteQurlSchema') validating the 'resource_id' input — requires a non-empty string starting with 'r_' (rejects q_ prefixes).
    export const deleteQurlSchema = z.object({
      // DELETE only accepts r_ (resource) IDs per the API spec — unlike
      // get/update/extend/mint_link which also accept q_ prefixes. Reject
      // non-r_ IDs at the schema boundary so agents get a clear error
      // instead of a confusing API-side rejection.
      resource_id: z
        .string()
        .min(1)
        .startsWith("r_", "delete_qurl only accepts resource IDs (r_ prefix). Use update_qurl or mint_link for q_ IDs.")
        .describe(
          "The resource ID (must start with r_). delete_qurl does not accept q_ (qURL display) IDs.",
        ),
    });
  • src/server.ts:38-54 (registration)
    Registration: deleteQurlTool is imported, included in the toolFactories array (line 44), and registered via server.tool() in the loop at lines 51-54.
    // Register tools
    const toolFactories = [
      createQurlTool,
      resolveQurlTool,
      listQurlsTool,
      getQurlTool,
      deleteQurlTool,
      extendQurlTool,
      updateQurlTool,
      mintLinkTool,
      batchCreateTool,
    ] satisfies ToolFactory[];
    
    for (const factory of toolFactories) {
      const tool = factory(client);
      server.tool(tool.name, tool.description, tool.inputSchema.shape, tool.handler);
    }
  • Client helper method deleteQURL that sends a DELETE HTTP request to /v1/qurls/{id}.
    async deleteQURL(id: string): Promise<void> {
      await this.request("DELETE", this.qurlPath(id));
    }
Behavior3/5

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

Description states immediate invalidation, which is behavioral. But does not mention reversibility, permissions, or side effects. No annotations to supplement, so description partially fulfills but lacks depth.

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 concise sentences, directly stating purpose and immediate effect. No fluff, front-loaded.

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?

Adequate for a simple delete operation, but lacks mention of return value or error handling. No output schema to supplement. Could be more complete.

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 for resource_id is detailed (must start with r_, does not accept q_ IDs). Tool description does not add parameter-level info beyond that, so baseline of 3.

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?

Clearly states the tool revokes/deletes a qURL and that it immediately invalidates the link. Different from siblings which create, extend, get, list, etc.

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

Usage Guidelines2/5

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

Description lacks explicit when/when-not to use this tool vs alternatives like update_qurl or extend_qurl. Only implicit that it's for deletion. The schema description gives a constraint on ID format but no usage guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/layervai/qurl-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server