Skip to main content
Glama

One PK battle

creators_battle
Read-only

Retrieve one TikTok creator battle by creator handle and battle ID, including teams, results, score timelines, lead changes, and top donors per team.

Instructions

One battle of the creator: teams and result, team scores over time (timeline, keyed by teamId), the moments the lead changed and TikTok's top contributors per team (donors, Pro and above; gifterAccess says locked otherwise). Needs API key scope live:read. Costs credits from the workspace wallet (billed as a cached read). Returns the API answer as JSON, with provenance (freshness, coverage, source).

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": {
      "uid": "<uid>",
      "battle_id": "<battle_id>"
    },
    "name": "creators_battle"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesCreator handle without `@` (e.g. `linh.live`) or numeric TikTok user id.
battle_idYesTikTok battle id (`battleId` from `creators_battles`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses auth scope (`live:read`), the billing model (credits from the workspace wallet, cached-read rate), and a data-gating rule where donor data is restricted to Pro and above with `gifterAccess` set to `locked` otherwise. That is exactly the operational context an agent cannot get from the annotations.

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?

A single dense paragraph, front-loaded with what the battle contains before moving to access, cost, and return shape. The parenthetical nesting around `timeline`, `donors`, and `gifterAccess` is packed but every clause carries 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 carries the return-value burden and does so: it enumerates the payload sections (teams, result, timeline keyed by `teamId`, lead-change moments, donors) and mentions the `provenance` envelope. Access, cost, and gating are all covered, leaving nothing an agent needs to call it correctly.

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%, with `uid` and `battle_id` both fully documented in the schema, so the baseline applies. The description adds no further meaning to either parameter beyond the schema's own handle-format and battle-id-origin notes.

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 resource and scope: 'One battle of the creator: teams and result', decomposing it into timeline, lead changes, and donors. It is clearly the single-battle counterpart to the plural `creators_battles`, reinforced by the schema noting `battle_id` comes from that tool. It stops short of an explicit verb like 'fetch' and never states the sibling relationship in the description text itself.

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 is implied rather than stated: an agent infers this is for a single known battle id, while `creators_battles` is for discovery. The prerequisites (API key scope `live:read`, credit cost) are useful selection conditions, but there are no explicit when-not-to-use rules or named alternatives.

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