Skip to main content
Glama
Prototypr

Feedbagel MCP Server

Official
by Prototypr

get_host_metadata

Retrieve metadata including title, description, favicon, and feed list for any host domain.

Instructions

[read] Get metadata (title, description, favicon, feed list) for a host domain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes

Implementation Reference

  • Definition of get_host_metadata tool with input schema (host string 1-200 chars) and handler that calls GET /api/v1/host/{host}/metadata
    {
      name: "get_host_metadata",
      description:
        "Get metadata (title, description, favicon, feed list) for a host domain.",
      scope: "read",
      inputSchema: z.object({
        host: z.string().min(1).max(200),
      }),
      handler: ({ host }: any, c) =>
        c.request(
          "GET",
          `/api/v1/host/${encodeURIComponent(host)}/metadata`,
        ),
  • Handler function for get_host_metadata: makes GET request to /api/v1/host/{encoded host}/metadata via FeedbagelClient
    handler: ({ host }: any, c) =>
      c.request(
        "GET",
        `/api/v1/host/${encodeURIComponent(host)}/metadata`,
      ),
  • src/index.ts:37-43 (registration)
    Registration: TOOLS array (including get_host_metadata) is exported and mapped into MCP ListTools response
    server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: TOOLS.map((t) => ({
        name: t.name,
        description: `[${t.scope}] ${t.description}`,
        inputSchema: zodToJsonSchema(t.inputSchema, { target: "openApi3" }),
      })),
    }));
  • FeedbagelClient.request() — the HTTP helper called by get_host_metadata's handler
    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;
    }
Behavior2/5

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

The '[read]' prefix indicates read-only behavior, which is useful. However, no further behavioral traits are disclosed (e.g., error handling, permissions, or rate limits). Since no annotations are present, the description carries this burden but does not fully address it.

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 a single concise sentence with a read-only prefix, containing no extraneous words. It is well-structured and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has one parameter and no output schema or annotations. The description lists the returned fields but omits details about return format, error cases, or prerequisites. For a simple tool, this lacks completeness.

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?

The parameter `host` is described in the schema with length constraints but lacks documentation. The description adds 'host domain' as context, which helps infer it is a domain name, but this is minimal. With 0% schema coverage, the description should provide more, such as format examples.

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 retrieves metadata (title, description, favicon, feed list) for a host domain, using a specific verb and resource. It is distinct from sibling tools like search_feeds or get_entry, which focus on different resources.

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 guidance is provided on when to use this tool versus alternatives. The description implies usage for host metadata but does not specify conditions or limitations.

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