Skip to main content
Glama
nks-hub

rybbit-mcp

by nks-hub

Delete Funnel

rybbit_delete_funnel
DestructiveIdempotent

Permanently delete a saved funnel by providing site ID and funnel ID. This action is irreversible, so use with caution.

Instructions

Permanently delete a saved funnel. This action cannot be undone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteIdYesSite ID (numeric ID or domain identifier)
funnelIdYesFunnel ID to delete (from rybbit_list_funnels)

Implementation Reference

  • The handler function for rybbit_delete_funnel that executes the tool logic. It extracts siteId and funnelId from args, makes a DELETE request to /sites/{siteId}/funnels/{funnelId} via the client, and returns the response or an error.
      async (args) => {
        try {
          const { siteId, funnelId } = args as { siteId: string; funnelId: string | number };
          const data = await client.delete(`/sites/${siteId}/funnels/${funnelId}`);
          return {
            content: [{ type: "text" as const, text: truncateResponse(data) }],
          };
        } catch (err) {
          const message = err instanceof Error ? err.message : String(err);
          return {
            content: [{ type: "text" as const, text: `Error: ${message}` }],
            isError: true,
          };
        }
      }
    );
  • Registration of the 'rybbit_delete_funnel' tool via server.registerTool(), including its title, description, annotations (readOnlyHint: false, idempotentHint: true, destructiveHint: true), and inputSchema (siteId and funnelId).
    server.registerTool(
      "rybbit_delete_funnel",
      {
        title: "Delete Funnel",
        description: "Permanently delete a saved funnel. This action cannot be undone.",
        annotations: {
          readOnlyHint: false,
          idempotentHint: true,
          openWorldHint: true,
          destructiveHint: true,
        },
        inputSchema: {
          siteId: siteIdSchema,
          funnelId: z
            .union([z.string(), z.number()])
            .describe("Funnel ID to delete (from rybbit_list_funnels)"),
        },
      },
      async (args) => {
        try {
          const { siteId, funnelId } = args as { siteId: string; funnelId: string | number };
          const data = await client.delete(`/sites/${siteId}/funnels/${funnelId}`);
          return {
            content: [{ type: "text" as const, text: truncateResponse(data) }],
          };
        } catch (err) {
          const message = err instanceof Error ? err.message : String(err);
          return {
            content: [{ type: "text" as const, text: `Error: ${message}` }],
            isError: true,
          };
        }
      }
    );
  • Input schema for rybbit_delete_funnel: siteId (from shared siteIdSchema which accepts string or number and transforms to string) and funnelId (union of string or number) described as 'Funnel ID to delete (from rybbit_list_funnels)'.
    inputSchema: {
      siteId: siteIdSchema,
      funnelId: z
        .union([z.string(), z.number()])
        .describe("Funnel ID to delete (from rybbit_list_funnels)"),
    },
  • The shared siteIdSchema used by the tool's inputSchema: accepts string or number, transforms to string.
    export const siteIdSchema = z
      .union([z.string(), z.number()])
      .transform((v) => String(v))
      .describe("Site ID (numeric ID or domain identifier)");
  • The client.delete() method called by the handler to make the HTTP DELETE request.
    async delete<T>(path: string, params?: QueryParams): Promise<T> {
      const url = this.buildUrl(path, params);
      return this.request<T>("DELETE", url);
    }
Behavior4/5

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

Annotations already indicate destructive and idempotent behavior. The description reinforces irreversibility ('cannot be undone'), adding useful context. No contradictions found.

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?

Single sentence with no wasted words. Front-loads the key action and consequence. Highly efficient.

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?

Despite no output schema, the description adequately covers the core purpose and effect. Could mention return value (e.g., success confirmation) but not critical for a simple delete action.

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 baseline is 3. The description does not add new meaning beyond what the schema already provides for both parameters.

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 action ('permanently delete') and resource ('saved funnel'). The title 'Delete Funnel' and sibling tools like rybbit_create_funnel and rybbit_list_funnels provide strong differentiation.

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?

No explicit guidance on when to use this tool versus alternatives. The implication is that it is for permanent deletion only, but no 'when not to use' or alternative recommendations are given.

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/nks-hub/rybbit-mcp'

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