Skip to main content
Glama

Extract from a link

extract

Use this when the user wants the transcript, comments, metadata, video/audio files or structured JSON from a video, post or web page. Starts an extraction on the user's Post Reef account (debits its credits; refunded if it fails) and waits up to wait_seconds for the result. Pass schemaId or schema for JSON, otherwise it is a download. Call quote first if the user wants to know the cost.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic link to one video, post or web page (YouTube, Shorts, TikTok, Instagram, Facebook, X, Vimeo, an article, …).
forceNoRun fresh even if an identical extraction from the last 30 days could be reused for free.
partsNoDownload-only runs (no schema): which artifacts to fetch. Any of transcript, comments, audio, video. Omit for all of them. Metadata, thumbnail and description always come back.
inputsNoAI runs (with schemaId or schema): what the model reads. Any of transcript, comments, audio, video. Default transcript + comments. Do not combine with parts.
schemaNoInline JSON Schema (top-level object) for the extracted JSON, instead of schemaId. No type unions; enums of strings only; optional fields are simply left out of required.
schemaIdNoTurn the content into JSON with a saved schema: a predefined one by name (Recipe, Workout, Product review, …) or id, or one of the user's own schema ids. See list_schemas.
maxCommentsNoCap on how many comments to fetch (1-1000, default 1000).
wait_secondsNoHow long to wait for the result before returning (0-50, default 45). If it is not done by then, call get_extraction.

Output Schema

NameRequiredDescriptionDefault
kindYes
noteNo
extractionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the call debits account credits and that a failed run is refunded, plus that it blocks up to wait_seconds before returning. These cost and latency traits are exactly the context an agent needs before invoking a non-readOnly, openWorld operation, and nothing contradicts the declared hints.

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?

Three sentences, front-loaded with the trigger and followed by the cost/blocking behavior and the fallback call. Every clause carries actionable information, with no filler or redundant restatement of the title.

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

Completeness5/5

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

For an eight-parameter, nested-schema extraction tool with an output schema available, the description covers the trigger, cost model, synchronous bound, and the async continuation path. Return values need no explanation because an output schema exists, leaving no material gap.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already defines each parameter; the description still adds decision-level semantics: passing schemaId or schema turns the run into a JSON extraction, otherwise it is a download, which explains the parts-versus-inputs split. It stops short of restating the enum or range details, appropriately deferring to 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?

Names a concrete verb ("extract") and enumerates the resources it returns: transcript, comments, metadata, video/audio files, or structured JSON from a video, post or web page. This scoping is specific enough to separate it from get_extraction and list_extractions without opening a schema.

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?

Explicitly frames the trigger ("Use this when the user wants...") and routes two follow-ups: call quote first if cost is the question, and call get_extraction if the run is not finished by wait_seconds. It lacks an explicit statement of when not to use it (e.g. status checks on an existing job), so it falls short of full alternative coverage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources