Skip to main content
Glama

Agency directory statistics

agencies_stats
Read-only

Count TikTok LIVE agencies by region and return size and revenue band totals as published, using an API key with creator:read scope.

Instructions

Counts over the TikTok LIVE agency directory, optionally for one region: how many agencies, and their size and revenue bands as TikTok publishes them. Needs API key scope creator: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

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": "agencies_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionNoISO 3166-1 alpha-2 region code; all regions when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.7/5.0
Behavior4/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations by disclosing the required API key scope (creator:read), that the call consumes workspace wallet credits and is billed as a cached read, and that the response carries provenance metadata (freshness, coverage, source). Only the exact cost amount and caching/rate-limit behavior are left unspecified.

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?

Three tight sentences with no filler: what is counted first, then constraints (scope, credits), then return shape. Slightly dense with parenthetical detail, but every sentence carries operational information.

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 one-parameter read-only tool with no output schema, the description covers the essential call prerequisites (auth scope, credit cost) and characterizes the return payload including provenance fields. It leaves open whether counts are broken down per region or returned as a single total, a minor but real ambiguity.

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% and the single region parameter already documents the ISO 3166-1 alpha-2 format plus the all-regions default. The description's 'optionally for one region' restates that rather than adding new meaning, so the baseline of 3 applies.

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 — counting agencies in the TikTok LIVE agency directory — and specifies the outputs (agency count plus size and revenue bands). This is clearly an aggregate/statistics tool rather than a record fetch, which implicitly separates it from agencies_list and agencies_get, though those siblings are never named.

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?

The 'optionally for one region' phrasing implies when to pass a parameter and tells the agent the default is directory-wide, but there is no explicit guidance on when to prefer this over agencies_list or agencies_get. Usage is inferable from the word 'counts' rather than stated.

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