Skip to main content
Glama
Prototypr

Feedbagel MCP Server

Official
by Prototypr

follow_feed

Add a feed to your follow list using its numeric feed ID. Idempotent operation that counts toward your subscription cap.

Instructions

[write] Add a feed to the user's follow list. Idempotent. Counts against the subscription cap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
feed_idYesNumeric feed id

Implementation Reference

  • The handler for follow_feed calls the FeedbagelClient.request method with POST to /api/v1/follow, passing the input object (containing feed_id) as the body.
      handler: (input, c) => c.request("POST", "/api/v1/follow", input),
    },
  • Input schema for follow_feed: expects a positive integer feed_id.
    const FeedIdInput = z.object({
      feed_id: z.number().int().positive().describe("Numeric feed id"),
    });
  • src/tools.ts:36-43 (registration)
    The follow_feed tool is defined in the TOOLS array with name 'follow_feed', description, scope 'write', FeedIdInput schema, and the handler.
    {
      name: "follow_feed",
      description:
        "Add a feed to the user's follow list. Idempotent. Counts against the subscription cap.",
      scope: "write",
      inputSchema: FeedIdInput,
      handler: (input, c) => c.request("POST", "/api/v1/follow", input),
    },
  • The FeedbagelClient.request helper that follow_feed's handler delegates to — sends an HTTP request with Bearer auth and JSON body to the feedbagel API.
    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;
    }
Behavior3/5

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

With no annotations, the description carries full burden. It discloses that it is a write operation, idempotent, and counts against a cap. However, it does not detail what happens if the feed is already followed (idempotent implies no error?), required permissions, or failure behavior.

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?

The description is very concise at one sentence plus a fragment, front-loaded with '[write]'. It conveys essential information without extra fluff. Could be slightly more structured but is 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?

For a simple tool with one parameter and no output schema, the description covers key aspects: action, idempotency, and subscription cap. It is mostly complete, though it lacks details on error handling or limits.

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 input schema has 100% coverage with a clear description for 'feed_id'. The tool description does not add additional meaning beyond what the schema already provides, so a baseline score of 3 is appropriate.

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 action ('Add a feed to the user's follow list'), uses a specific verb and resource, and distinguishes itself from sibling tools like 'unfollow_feed'. It also provides context about idempotency and subscription cap, enhancing clarity.

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?

The description mentions idempotency (safe to retry) and subscription cap, but does not explicitly state when to use this tool versus alternatives (e.g., when not to use or when to use 'search_feeds' first). Some guidance is implied but not explicit.

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