Skip to main content
Glama
SocialAPI MCP Server

SocialAPI MCP Server

Official

Call Endpoint

call_endpoint
Read-onlyIdempotent

Invoke a named SocialAPI endpoint with parameters to fetch item or list JSON data and a pagination cursor for next pages.

Instructions

Calls a SocialAPI endpoint by its name and answers its JSON: { data } for one item, { data, pagination } for a list. endpoint is the endpoint's name (such as tiktok_profile), arguments its parameters (such as {"handle": "nike"}). It costs what the endpoint states (1 credit for most); a cached answer and a refused call are free. A list's next page is its pagination.nextCursor given as cursor.

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": {
      "endpoint": "<endpoint>"
    },
    "name": "call_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
endpointYesThe endpoint's name, such as "tiktok_post_comments".
argumentsNoIts parameters, such as {"url": "https://www.tiktok.com/@nike/video/7351…"}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, and open-world status, yet the description adds genuinely new behavior: credit cost per call, that cached and refused calls are free, and that list pagination is driven by `pagination.nextCursor` passed as `cursor`. Only error semantics beyond 'refused calls are free' remain undisclosed.

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?

Four tight sentences, front-loaded with the action and return shapes, then parameters, then cost, then pagination. Every clause carries information; the inline examples replace prose without bloat.

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?

With no output schema, the description compensates by explaining both return shapes and the pagination field, and it covers cost. The remaining gap is how an agent discovers valid endpoint names and argument shapes, which is left to the sibling find_endpoints without being named.

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 real meaning the schema cannot: `endpoint` is a named SocialAPI endpoint (e.g. `tiktok_profile`) and `arguments` is an opaque pass-through object whose contents depend on that endpoint, illustrated with `{"handle": "nike"}`. This clarifies the nested-object contract beyond the terse schema text.

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?

The description names a specific verb and resource ('Calls a SocialAPI endpoint by its name') and immediately characterizes the response shapes (`{ data }` vs `{ data, pagination }`). It does not explicitly distinguish itself from find_endpoints or get_credits, so an agent must infer that this is the execution tool rather than the discovery or billing one.

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?

Usage context is implied rather than stated: the reader learns the tool takes an endpoint name plus arguments, but is never told to use find_endpoints first to obtain that name, nor when this tool should be preferred over alternatives. The cost and caching notes give practical guidance but not when-to-use routing.

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

Deploy Server

Other Tools