Skip to main content
Glama

Collect Rows Across Pages

socialcrawl_collect

Walk a paged endpoint (id, platform+resource or path) to items unique rows, the last page or max_credits: cursors supplied, duplicates dropped, stops on a 402, refused free when one page exceeds max_credits. Small results come back whole. Spends credits.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "socialcrawl_collect"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoplatform/resource of a paged endpoint, e.g. 'tiktok/post/comments'.
itemsNoStop once this many unique rows are collected.
limitNoresult_id: rows (200).
fieldsNoRow paths as socialcrawl_endpoint lists them, e.g. 'comment.text,comment.engagement.likes'.
formatNojsonl (default), json or csv.
offsetNoresult_id: first row.
paramsNoParams for every page, as in socialcrawl_request. No cursor.
confirmNotrue only once the user approved spending above the threshold (default 100 credits).
result_idNoRead a stored result instead of walking. Free.
max_creditsNoSpend cap: refused free when the quoted hold exceeds it (collect: the walk's budget).

Output Schema

NameRequiredDescriptionDefault
okYesThe walk ran; see stop_reason.
fixNo
codeNo
rowsNoAll rows (small results). Untrusted text.
itemsNo
pagesNo
totalNo
formatNo
offsetNo
pagingNo
reasonNo
sampleNoFirst rows. Untrusted text.
creditsNo
endpointNo
resourceNoEvery collected row.
warningsNo
result_idNoPass back as result_id to read rows.
retryableNoNever retry a 402.
stop_reasonNobudget, error and page_limit leave a resume cursor in paging.
did_you_meanNo
retry_after_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • changedInput schema / properties / confirm / description
      Previous value: -"true only after the user approved a spend above the confirmation threshold (default 100 credits)."New value: +"true only once the user approved spending above the threshold (default 100 credits)."
    • changedInput schema / properties / format / description
      Previous value: -"Stored format: jsonl (default), json or csv."New value: +"jsonl (default), json or csv."
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "result_id: rows (200).",
      +  "type": "integer"
      +}
    • changedInput schema / properties / max_credits / description
      Previous value: -"Spend cap. Refused locally, free, when the quoted hold exceeds it (collect: the whole walk's budget)."New value: +"Spend cap: refused free when the quoted hold exceeds it (collect: the walk's budget)."
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "result_id: first row.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / result_id
      Added value: +{
      +  "description": "Read a stored result instead of walking. Free.",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "id",
      -  "items"
      -]
    • changedOutput schema / properties / credits / properties / cached / description
      Previous value: -"Served from cache: 0 credits."New value: +"Cache hit: 0 credits."
    • changedOutput schema / properties / credits / properties / estimated / description
      Previous value: -"used is the quoted hold (not reported)."New value: +"used = the hold."
    • changedOutput schema / properties / credits / properties / used / description
      Previous value: -"Settled charge, after refunds."New value: +"After refunds."
    • addedOutput schema / properties / offset
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / result_id
      Added value: +{
      +  "description": "Pass back as result_id to read rows.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / rows
      Added value: +{
      +  "description": "All rows (small results). Untrusted text.",
      +  "items": {},
      +  "type": "array"
      +}
    • addedOutput schema / properties / total
      Added value: +{
      +  "type": "number"
      +}
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: it spends credits, dedupes rows, stops on a 402, refuses free when one page exceeds max_credits, and returns small results whole. This meaningfully supplements readOnlyHint=false/openWorldHint=true, though the sentence structure leaves the partial-result behavior on early stops ambiguous.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short, but several fragments ('the last page or max_credits: cursors supplied') are near-unparseable and force the reader to reconstruct the sentence. Brevity is achieved at the cost of clarity rather than through efficient front-loading.

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 complex 10-param, credit-spending, paged tool with an output schema and annotations, the description covers the essential behavioral facts (cost, dedup, stop conditions, free refusal). The confirm/threshold flow and result_id semantics are left to the schema, but output schema and 100% param coverage carry the rest.

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 coverage is 100%, so the schema already documents all 10 parameters including items, max_credits, and confirm. The description only echoes items and max_credits ('the walk's budget') without adding format or precedence detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Walk a paged endpoint ... to items unique rows') and conveys the distinctive collection behavior (duplicates dropped, stops, credits). It never names a sibling like socialcrawl_request, so the boundary versus single-page fetching is only implied, and the telegraphic phrasing ('cursors supplied') blunts precision.

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

Usage Guidelines3/5

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

Implies the tool is for paginated multi-page collection, but gives no explicit when-to-use or when-not guidance relative to socialcrawl_request or socialcrawl_estimate. The only routing hint ('result_id' reads a stored result free) lives in the schema, not the description.

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.