Skip to main content
Glama

Delete Card

delete_card

Permanently delete a card from Codecks project management. Use archive_card for reversible removal.

Instructions

Permanently delete a card. Cannot be undone — use archive_card if reversibility needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
card_idYesFull 36-char UUID

Implementation Reference

  • Tool registration: Registers 'delete_card' MCP tool with title, description, input schema (card_id UUID), and handler that validates the UUID and calls client.deleteCard().
    server.registerTool(
      "delete_card",
      {
        title: "Delete Card",
        description:
          "Permanently delete a card. Cannot be undone — use archive_card if reversibility needed.",
        inputSchema: z.object({
          card_id: z.string().describe("Full 36-char UUID"),
        }),
      },
      async (args) => {
        try {
          validateUuid(args.card_id);
          const result = await client.deleteCard(args.card_id);
          return {
            content: [{ type: "text", text: JSON.stringify(finalizeToolResult(result)) }],
          };
        } catch (err) {
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(finalizeToolResult(handleError(err))),
              },
            ],
          };
        }
      },
    );
  • Client method implementation: deleteCard() dispatches 'cards/remove' action with the cardId to the Codecks API.
    async deleteCard(cardId: string): Promise<Record<string, unknown>> {
      const result = await dispatch("cards/remove", { cardId });
      return { ok: true, card_id: cardId, result };
    }
  • Dispatch function: Routes API requests to /dispatch/{path} endpoint with POST method.
    export async function dispatch(path: string, data: unknown): Promise<Record<string, unknown>> {
      return sessionRequest(`/dispatch/${path}`, data);
    }
  • UUID validation helper: Validates that card_id is a 36-character UUID string with exactly 4 hyphens.
    export function validateUuid(value: string, field = "card_id"): string {
      if (typeof value !== "string" || value.length !== 36 || (value.match(/-/g) ?? []).length !== 4) {
        throw new CliError(
          `[ERROR] ${field} must be a full 36-char UUID, got: ${JSON.stringify(value)}`,
        );
      }
      return value;
    }
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively communicates the irreversible nature of the operation ('Permanently delete... Cannot be undone'), which is crucial for a destructive tool. However, it doesn't mention potential side effects (e.g., what happens to associated data) or error conditions.

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?

The description is extremely concise with just two sentences that each serve a distinct purpose: the first states the core action, the second provides critical usage guidance. There is zero wasted language, and the most important information (permanent deletion) is front-loaded.

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 destructive tool with no annotations and no output schema, the description does well by emphasizing irreversibility and providing alternative guidance. However, it could be more complete by mentioning what 'permanently delete' entails (e.g., removal from all views, data cleanup) or potential error cases, though the concise approach is generally effective.

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?

The schema description coverage is 100%, with the single parameter 'card_id' fully documented as a 'Full 36-char UUID.' The description adds no additional parameter information beyond what the schema provides, so it meets the baseline for high schema coverage.

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?

The description clearly states the specific action ('permanently delete') and resource ('a card'), distinguishing it from sibling tools like archive_card. It uses precise language that leaves no ambiguity about what the tool does.

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?

The description explicitly provides when-not-to-use guidance by stating 'use archive_card if reversibility needed,' directly naming an alternative sibling tool. This gives clear context for choosing between destructive and non-destructive options.

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/rangogamedev/codecks-mcp'

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