Skip to main content
Glama

HandleHaul

TikTok posts

tiktok_get_posts
Read-onlyIdempotent

Videos and photo posts of a public TikTok account, newest first, about 16 per page: caption, date, duration, cover, view / like / comment / share / save counts, music and hashtags. Paginate by passing pagination.next_cursor back as cursor while pagination.has_more is true. Costs 1 credit per page (nothing from cache, on errors or with a kd_test_ sandbox 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": {
      "user": "<user>"
    },
    "name": "tiktok_get_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNotrue returns TikTok's raw JSON in data instead of our fields (same price). Default false.
userYesTikTok handle (e.g. "tiktok", with or without @), numeric user id, or secUid (fastest, e.g. "MS4wLjABAAAA..."). All digits = an id; write "@12345" for a handle made only of digits. On list tools, a handle we have not seen in 7 days may cost 1 extra credit for the lookup (see meta.lookup_credits); an id or secUid never does.
freshNotrue skips the cache and fetches live data (full price). Default false.
cursorNopagination.next_cursor from the previous page. Leave out for the first page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, openWorld, non-destructive), yet the description adds real behavioral context: ordering, page size, the credit cost per page, and explicitly when no credit is charged (cache, errors, kd_test_ sandbox). It doesn't cover partial-failure or rate-limit behavior, keeping it below 5.

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 what you get, then pagination mechanics, then cost — a logical order with almost no filler. The parenthetical pricing caveats are dense but each clause carries distinct 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?

With no output schema, the description compensates by enumerating the returned fields and the pagination envelope (next_cursor, has_more) used to iterate. Cost and cache semantics are spelled out, leaving nothing material an agent needs before calling.

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 description coverage is 100%, so the schema already defines user, raw, fresh, and cursor in depth (including handle vs id vs secUid and lookup credits). The description only reinforces that cursor comes from pagination.next_cursor and says nothing new about raw or fresh, matching the baseline 3 when the schema does the heavy lifting.

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 resource and scope: 'Videos and photo posts of a public TikTok account, newest first, about 16 per page', with an enumeration of returned fields. The account scoping implicitly distinguishes it from hashtag/music post siblings, but no sibling is named explicitly.

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?

Gives concrete pagination guidance ('pass pagination.next_cursor back as cursor while pagination.has_more is true') and cost conditions, which help an agent call it correctly. However it never says when to choose this over tiktok_get_post (single post), tiktok_get_liked, or tiktok_get_reposts for the same account's content.

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.