Skip to main content
Glama

SocialCrawl

Call an Endpoint

socialcrawl_request

Call one endpoint (platform+resource, or id, or path). Validated locally first (a bad call is free), quoted, refused above max_credits and confirmed above the threshold. A large page is cut at row boundaries; socialcrawl_collect result_id reads the rest. Spends credits; needs SOCIALCRAWL_API_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>",
      "resource": "<resource>"
    },
    "name": "socialcrawl_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST batch endpoints, e.g. { ids: [...] }.
fieldsNoRow paths as socialcrawl_endpoint lists them, e.g. 'post.id,post.engagement.*' (or an array). Cuts tokens.
formatNojson (default), csv (canonical columns) or summary.
methodNoOnly for a resource served by several methods (prism/jobs). Inferred: a body selects POST.
paramsNoQuery params, e.g. { handle: 'x', limit: 10 }. Arrays join with commas (label). Sent as strings.
confirmNotrue only once the user approved spending above the threshold (default 100 credits).
platformYesPlatform slug, e.g. 'tiktok'. An unknown slug gets a did-you-mean.
resourceYesResource path, e.g. 'post/comments'; path params as 'jobs/{job_id}' + params.job_id, or the concrete path.
max_itemsNoShow at most this many rows; the full page stays behind the result link.
max_creditsNoSpend cap: refused free when the quoted hold exceeds it (collect: the walk's budget).
idempotencyKeyNoMakes a retry safe: a replay returns the original response for 0 credits (24h).

Output Schema

NameRequiredDescriptionDefault
okYes
fixNo
jobNoA submitted background job and how to poll it.
codeNo
dataNoSingle-object result.
hintNo
pageNoPage-level blocks beside the rows.
rowsNoUntrusted text.
pagingNo
reasonNo
creditsNo
partialNoStream failed after some data (kept in rows/data).
summaryNoformat=summary.
csv_rowsNoformat=csv: rows in the text CSV.
endpointNo
warningsNo
result_idNosocialcrawl_collect result_id reads the full body.
retryableNoNever retry a 402.
truncatedNoRows were cut to fit.
request_idNo
did_you_meanNo
retry_after_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Far beyond the annotations: local validation means bad calls are free, pricing is quoted and refused above max_credits, confirmation is required above a 100-credit threshold, credits are spent, SOCIALCRAWL_API_KEY is required, and pages are cut at row boundaries with a result_id continuation. It also explains idempotencyKey replay for 0 credits within 24h, which is consistent with idempotentHint=false (idempotent only when a key is supplied).

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?

Four dense sentences, front-loaded with identity and cost behavior, and every clause carries information (validation, quote, cap, confirm, truncation, auth). The telegraphic phrasing ("quoted, refused above max_credits and confirmed above the threshold") is slightly clipped but not wasteful.

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?

An output schema exists, so return values need no explanation, and the description covers cost, auth, truncation, and pagination continuation, which is what an agent needs before calling. The one gap is that the "or id, or path" alternative invocation forms are not reconciled with the two required parameters.

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; the description adds real meaning on top by explaining the confirm threshold (default 100 credits), the free refusal path for max_credits, and that fields cuts tokens. It leaves method inference and max_items interaction to the schema, which is already detailed.

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 ("Call one endpoint") and narrows it to platform+resource. It separates itself from socialcrawl_collect by assigning that tool the result_id continuation role. Minor ambiguity: "or id, or path" conflicts a little with the schema, which requires both platform and resource, so the alternate call forms are not crisp.

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?

Implied usage is clear (this is the tool that actually spends credits to fetch data), and it does route the agent to socialcrawl_collect for reading past a truncated page. However, it never explicitly contrasts itself with socialcrawl_endpoint (discovery) or socialcrawl_estimate (quoting) as a first step, so the agent must infer when this call is appropriate.

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.