Skip to main content
Glama
Prototypr

Feedbagel MCP Server

Official
by Prototypr

list_entries

Retrieve paginated recent entries from all feeds. Sort by published or created date in ascending or descending order.

Instructions

[read] List recent entries across all feeds, paginated. Use sort_by='published' (default) for newest first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
per_pageNo
sort_byNopublished
sort_orderNodesc

Implementation Reference

  • Handler function that builds query params (page, per_page, sort_by, sort_order) and makes a GET request to /api/v1/entries
    handler: (input: any, c) => {
      const qs = new URLSearchParams({
        page: String(input.page),
        per_page: String(input.per_page),
        sort_by: input.sort_by,
        sort_order: input.sort_order,
      }).toString();
      return c.request("GET", `/api/v1/entries?${qs}`);
    },
  • Zod schema for input validation: page (default 1), per_page (default 20, max 100), sort_by (enum 'published'|'created', default 'published'), sort_order (enum 'asc'|'desc', default 'desc')
    inputSchema: z.object({
      page: z.number().int().positive().default(1),
      per_page: z.number().int().min(1).max(100).default(20),
      sort_by: z.enum(["published", "created"]).default("published"),
      sort_order: z.enum(["asc", "desc"]).default("desc"),
    }),
  • src/tools.ts:172-191 (registration)
    Tool definition within the TOOLS array, registered with name 'list_entries', scope 'read', and description
      name: "list_entries",
      description:
        "List recent entries across all feeds, paginated. Use sort_by='published' (default) for newest first.",
      scope: "read",
      inputSchema: z.object({
        page: z.number().int().positive().default(1),
        per_page: z.number().int().min(1).max(100).default(20),
        sort_by: z.enum(["published", "created"]).default("published"),
        sort_order: z.enum(["asc", "desc"]).default("desc"),
      }),
      handler: (input: any, c) => {
        const qs = new URLSearchParams({
          page: String(input.page),
          per_page: String(input.per_page),
          sort_by: input.sort_by,
          sort_order: input.sort_order,
        }).toString();
        return c.request("GET", `/api/v1/entries?${qs}`);
      },
    },
  • src/index.ts:37-43 (registration)
    Registration of all tools (including list_entries) with the MCP server via ListToolsRequestSchema handler
    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)
    CallToolRequestSchema handler that looks up the tool by name (including list_entries), validates args, and calls the handler
    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,
              ),
            },
          ],
        };
      }
    });
Behavior3/5

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

With no annotations provided, the description partially covers behavioral traits by marking the operation as read-only with '[read]' and mentioning pagination. It lacks details on potential side effects, rate limits, or empty result behavior, but is adequate for a straightforward read operation.

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: a single sentence with a key usage tip. It is front-loaded with the read indicator, making it efficient and no wasted words.

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?

Given the tool has 4 parameters (none required), no output schema, and a context of related tools, the description covers core purpose and sorting but omits important details like return format, pagination behavior (e.g., how page is used), or error handling. It is minimally complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It mentions sort_by with its default value and pagination concept but does not describe page, per_page, or sort_order parameters. This is insufficient for an agent to fully understand parameter usage without inspecting the schema.

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 tool lists recent entries across all feeds with pagination. The prefix '[read]' indicates the operation type, and 'List recent entries across all feeds' precisely defines the scope, distinguishing it from sibling tools like get_entry or search_feeds.

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

Usage Guidelines4/5

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

The description provides explicit guidance on using sort_by='published' for newest first behavior, which is helpful. However, it does not directly compare against siblings or state when not to use this tool, though the context of sibling names implies it for general listing.

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