Skip to main content
Glama

create_extraction

Starts a background extraction job and returns its job record immediately without results, for one target when the limit exceeds 50 or the work may take a while. Poll with wait_for_extraction, then get_extraction_result.

Instructions

Start one extraction job that runs in the background and return its job record right away, without results. Uses credits for delivered results at the rate get_operation_guide shows (per result, or a flat amount for a few collections); credits are held at the start and the unused part is released, and failed, cancelled or empty runs are free. Use it for one target when the limit is above 50 or the work may take a while; use extract_now for small immediate answers and create_batch for many targets. Next call wait_for_extraction with job.id, then get_extraction_result. Safe to retry with the same idempotency_key.

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": {
      "platform": "<platform>",
      "operation": "<operation>",
      "target": "<target>"
    },
    "name": "create_extraction"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results to collect per target, from 1 up to the operation's max_results in discover_platforms. Default 12. Single-item operations (profile, post, video, transcript, playlist, adlibrary_ad, adlibrary_ad_transcript, profile_analytics) always count as 1; Instagram highlights, highlight_items and stories ignore limit. Example: 50
cursorNoOnly for Instagram followers and following: the next_cursor from an earlier result, to continue where that run stopped. Leave it out to start from the beginning.
targetYesWhat to collect from; the format depends on the operation: a username without @, a post or video URL, an ID, a hashtag without #, a search query or a country code. Example: nike
platformYesPlatform name from discover_platforms: instagram, tiktok, youtube, x or facebook. Example: instagram
operationYesOperation name from discover_platforms for the chosen platform, such as profile, posts, comments, followers, hashtag, search or adlibrary_search. Example: posts
include_postsNoOnly for operation profile: also return this many recent posts, 0 up to the posts operation's max_results (200 at most; 50 at most in extract_now), billed at the posts rate. Default 0. Example: 12
idempotency_keyNoOptional retry key, 1-128 characters. Repeating the call with the same key and identical arguments returns the original request instead of starting and charging a new one. Reusing a key with different arguments is rejected. Leave it out to get a generated key back as idempotency_key. Example: nike-posts-2026-12-01

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.1
    • addedInput schema / properties / cursor / description
      Added value: +"Only for Instagram followers and following: the next_cursor from an earlier result, to continue where that run stopped. Leave it out to start from the beginning."
    • addedInput schema / properties / idempotency_key / description
      Added value: +"Optional retry key, 1-128 characters. Repeating the call with the same key and identical arguments returns the original request instead of starting and charging a new one. Reusing a key with different arguments is rejected. Leave it out to get a generated key back as idempotency_key. Example: nike-posts-2026-12-01"
    • addedInput schema / properties / include_posts / description
      Added value: +"Only for operation profile: also return this many recent posts, 0 up to the posts operation's max_results (200 at most; 50 at most in extract_now), billed at the posts rate. Default 0. Example: 12"
    • addedInput schema / properties / limit / description
      Added value: +"Maximum results to collect per target, from 1 up to the operation's max_results in discover_platforms. Default 12. Single-item operations (profile, post, video, transcript, playlist, adlibrary_ad, adlibrary_ad_transcript, profile_analytics) always count as 1; Instagram highlights, highlight_items and stories ignore limit. Example: 50"
    • changedInput schema / properties / operation / description
      Previous value: -"Operation returned by discover_platforms"New value: +"Operation name from discover_platforms for the chosen platform, such as profile, posts, comments, followers, hashtag, search or adlibrary_search. Example: posts"
    • changedInput schema / properties / platform / description
      Previous value: -"Platform returned by discover_platforms"New value: +"Platform name from discover_platforms: instagram, tiktok, youtube, x or facebook. Example: instagram"
    • addedInput schema / properties / target / description
      Added value: +"What to collect from; the format depends on the operation: a username without @, a post or video URL, an ID, a hashtag without #, a search query or a country code. Example: nike"
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses credit consumption at the rate from get_operation_guide, that credits are held up front and the unused portion released, that failed/cancelled/empty runs are free, and that retries with the same idempotency_key are safe. These are non-obvious cost and safety traits an agent cannot get from structured fields.

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?

Front-loaded with the core behavior and the workflow chain, and every sentence carries information. The credit sentence is long and clause-heavy, which slightly slows parsing, but nothing is redundant.

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 async, credit-consuming tool with no output schema, the description covers what is returned (the job record, no results), the required subsequent calls, the cost model including failure exemptions, and retry safety. An agent has everything needed to invoke it and interpret the response.

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 baseline is 3, but the description adds meaning beyond the schema by tying the limit value to tool selection ('when the limit is above 50') and by restating idempotency semantics as a retry guarantee. It does not add format or interaction detail for target/operation/platform, which the schema already covers thoroughly.

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?

States a specific verb and resource ('Start one extraction job'), its asynchronous nature ('runs in the background'), and its return shape ('return its job record right away, without results'). This immediately distinguishes it from extract_now (immediate results) and create_batch (many targets).

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

Usage Guidelines5/5

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

Gives a concrete selection rule — one target, limit above 50, or long-running work — and names both alternatives with the conditions that select them ('extract_now for small immediate answers and create_batch for many targets'). It also prescribes the follow-up sequence: wait_for_extraction with job.id, then get_extraction_result.

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