Skip to main content
Glama
Prototypr

Feedbagel MCP Server

Official
by Prototypr

pause_webhook

Pause webhook subscription deliveries to stop the poller from processing new events while retaining existing attachments.

Instructions

[write] Pause deliveries for a webhook subscription. Existing attachments stay; the poller skips this subscriber until resumed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
webhook_idYesWebhook subscriber UUID

Implementation Reference

  • The pause_webhook tool definition with its handler function that sends a POST request to /api/v1/webhooks/{webhook_id}/pause.
    name: "pause_webhook",
    description:
      "Pause deliveries for a webhook subscription. Existing attachments stay; the poller skips this subscriber until resumed.",
    scope: "write",
    inputSchema: WebhookIdInput,
    handler: ({ webhook_id }: any, c) =>
      c.request("POST", `/api/v1/webhooks/${webhook_id}/pause`),
  • The input schema (WebhookIdInput) used by pause_webhook, requiring a 'webhook_id' string field.
    const WebhookIdInput = z.object({
      webhook_id: z.string().describe("Webhook subscriber UUID"),
    });
  • src/index.ts:37-43 (registration)
    Tool listing registration: TOOLS array (including pause_webhook) is converted to JSON schemas and exposed via ListToolsRequestSchema.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: TOOLS.map((t) => ({
        name: t.name,
        description: `[${t.scope}] ${t.description}`,
        inputSchema: zodToJsonSchema(t.inputSchema, { target: "openApi3" }),
      })),
    }));
  • src/index.ts:45-86 (registration)
    Tool call handler registration: dispatches to TOOLS.find, validates input via Zod, and calls the handler (including pause_webhook).
    server.setRequestHandler(CallToolRequestSchema, async (req) => {
      const tool = TOOLS.find((t) => t.name === req.params.name);
      if (!tool) {
        return {
          isError: true,
          content: [{ type: "text", text: `Unknown tool: ${req.params.name}` }],
        };
      }
      const parsed = tool.inputSchema.safeParse(req.params.arguments ?? {});
      if (!parsed.success) {
        return {
          isError: true,
          content: [
            {
              type: "text",
              text: `Invalid arguments: ${parsed.error.message}`,
            },
          ],
        };
      }
      try {
        const result = await tool.handler(parsed.data, client);
        return {
          content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
        };
      } catch (err) {
        const e = err as Error & { status?: number; body?: unknown };
        return {
          isError: true,
          content: [
            {
              type: "text",
              text: JSON.stringify(
                { error: e.message, status: e.status, body: e.body },
                null,
                2,
              ),
            },
          ],
        };
      }
    });
  • The FeedbagelClient.request() helper method used by pause_webhook's handler to make the actual HTTP POST call.
      async request(
        method: string,
        path: string,
        body?: unknown,
      ): Promise<unknown> {
        const res = await fetch(`${this.baseUrl}${path}`, {
          method,
          headers: {
            Authorization: `Bearer ${this.apiKey}`,
            ...(body !== undefined ? { "content-type": "application/json" } : {}),
          },
          body: body !== undefined ? JSON.stringify(body) : undefined,
        });
    
        const text = await res.text();
        let json: unknown = undefined;
        try {
          json = text ? JSON.parse(text) : undefined;
        } catch {
          json = { raw: text };
        }
    
        if (!res.ok) {
          // Surface 429 and 4xx details verbatim so the agent sees the cap info.
          const err: Error & { status?: number; body?: unknown } = new Error(
            `HTTP ${res.status} ${res.statusText}`,
          );
          err.status = res.status;
          err.body = json;
          throw err;
        }
        return json;
      }
    }
Behavior4/5

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

Discloses key behaviors: write operation, non-destructive to attachments, polling behavior. No annotations exist, so the description carries the transparency burden and does it fairly well, though it omits details like idempotency or error handling.

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?

Extremely concise: one-sentence description plus a clarifying phrase. No redundant information.

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 simple one-parameter tool without annotations or output schema, the description covers the primary action and a notable behavioral nuance. Minor gaps like error scenarios or defaults are acceptable given the tool's simplicity.

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?

Only one parameter with 100% schema coverage; the description does not add additional meaning beyond the schema's 'Webhook subscriber UUID'.

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 'Pause deliveries' and the resource 'webhook subscription'. Distinguishes from sibling 'resume_webhook' by indicating the pause is temporary until resumed.

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

Usage Guidelines3/5

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

Provides context that attachments persist and the poller skips, but lacks explicit guidance on when to use this vs. alternatives like delete or when not to use. The relation to resume_webhook is implied but not stated.

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/Prototypr/feedbagel-mcp'

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