Skip to main content
Glama
socialrouter

SocialRouter MCP Server

Official
by socialrouter

Get extraction

get_extraction

Retrieve the results of a completed extraction by providing its unique extraction ID.

Instructions

Get the result of a previous extraction by its ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe extraction ID (e.g., ext_abc123)

Implementation Reference

  • The handler function for the get_extraction tool. Calls client.getExtraction(id) and returns the result as formatted JSON text.
    async ({ id }) => {
      const result = await client.getExtraction(id);
      return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }] };
    }
  • Schema definition for get_extraction tool: requires a single 'id' string parameter.
    {
      title: "Get extraction",
      description: "Get the result of a previous extraction by its ID",
      inputSchema: {
        id: z.string().describe("The extraction ID (e.g., ext_abc123)"),
      },
  • src/index.ts:72-85 (registration)
    Registration of the get_extraction tool on the McpServer via server.registerTool().
    server.registerTool(
      "get_extraction",
      {
        title: "Get extraction",
        description: "Get the result of a previous extraction by its ID",
        inputSchema: {
          id: z.string().describe("The extraction ID (e.g., ext_abc123)"),
        },
      },
      async ({ id }) => {
        const result = await client.getExtraction(id);
        return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }] };
      }
    );
Behavior3/5

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

No annotations provided, so description carries full burden. States it is a read operation without side effects, but lacks details on potential states (e.g., extraction still processing), authentication needs, or rate limits. Adequate but not rich.

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 of 10 words with no redundant information. Front-loaded with verb and resource. Every word earns its place.

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 retrieval tool with one parameter and no output schema, the description is sufficient. It explains what the tool does and what input is needed. Could mention the return value but is adequate.

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 the schema already documents the parameter. The description adds no new meaning beyond 'by its ID', which is redundant. Baseline 3 applies.

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 verb 'get', the resource 'result of a previous extraction', and the method 'by its ID'. Distinguishes from siblings like 'extract' (which likely creates an extraction) and 'get_balance' (unrelated).

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?

Implies the tool is used after an extraction has been created (by referencing 'previous extraction'). Provides clear context but does not explicitly state when not to use it or name alternatives like 'extract'.

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/socialrouter/mcp'

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