Skip to main content
Glama

extract_now

Run one operation on one profile, post, or short list and get the first page of results in the same call. Pay only for delivered results; failed or empty runs are free.

Instructions

Run one operation on one target and return the first page of results in the same call. 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. Best for a single profile, post or short list (limit and include_posts up to 50); use create_extraction for larger or slower work and create_batch for many targets. Returns idempotency_key, job_id, status, result_count, billed_credits, notices, next_cursor, result and pagination; read more rows with get_extraction_result(job_id, offset=pagination next_offset). 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": "extract_now"
  }
}

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
compactNoDefault true: empty fields left out, media links and long text shortened, page capped at about 40,000 characters. false returns full rows.
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
text_limitNoCharacters of each long text field to return, 1-50,000. Default 20,000.
text_offsetNoCharacter to start from in long text fields such as transcripts. Default 0. Use that field's pagination next_offset to read on.
result_limitNoRows per result list in this response, 1-100. Default 50.
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
result_offsetNoRow to start from in each result list. Default 0; page later with get_extraction_result.
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. Changed12 schema fields changedv0.1.1
    • addedInput schema / properties / compact
      Added value: +{
      +  "default": true,
      +  "description": "Default true: empty fields left out, media links and long text shortened, page capped at about 40,000 characters. false returns full rows.",
      +  "type": "boolean"
      +}
    • 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 / result_limit / description
      Added value: +"Rows per result list in this response, 1-100. Default 50."
    • addedInput schema / properties / result_offset / description
      Added value: +"Row to start from in each result list. Default 0; page later with get_extraction_result."
    • 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"
    • addedInput schema / properties / text_limit / description
      Added value: +"Characters of each long text field to return, 1-50,000. Default 20,000."
    • addedInput schema / properties / text_offset / description
      Added value: +"Character to start from in long text fields such as transcripts. Default 0. Use that field's pagination next_offset to read on."
  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 supplied, the description carries the full burden and does so: it discloses the credit model (held at start, unused released, failed/cancelled/empty runs free, rate from get_operation_guide), retry safety via idempotency_key, and the exact fields returned. That is well beyond what any structured field provides.

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 action, then billing, alternatives, returns, and retry safety in a deliberate order. It is dense and parenthetical-heavy (credit rate caveats, long return-field list), but nearly every sentence carries actionable information.

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 a 12-parameter tool with no output schema, the description does the work: it enumerates the response fields (idempotency_key, job_id, status, result_count, billed_credits, notices, next_cursor, result, pagination) and explains how to page onward. Nothing an agent needs to invoke it correctly is missing.

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 would be 3, but the description adds real meaning the schema contradicts or omits: limit and include_posts are capped at 50 for this tool even though the schema advertises a 25,000 maximum for limit. It also ties cursor/pagination to get_extraction_result, which clarifies how continuation works.

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?

Opens with a specific verb and scope: 'Run one operation on one target and return the first page of results in the same call.' It then names the siblings it is not (create_extraction, create_batch), so an agent can pick it apart from alternatives 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 Guidelines5/5

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

Gives an explicit when-to-use condition ('Best for a single profile, post or short list (limit and include_posts up to 50)') and names the two alternatives with the conditions that select them: create_extraction for larger or slower work, create_batch for many targets.

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