Skip to main content
Glama

HandleHaul

Post stats (batch)

get_post_stats
Read-onlyIdempotent

Like, comment and view counts for 1 to 20 posts in one call. Pass shortcodes or ids, comma-separated, in ids. Costs 1 credit (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": {
      "ids": "<ids>"
    },
    "name": "get_post_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes1 to 20 posts, comma-separated (shortcodes or ids).
freshNotrue skips the cache and fetches live data (full price). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the billing model: 1 credit, free when served from cache, free on errors, free with a kd_test_ sandbox key, and that fresh=true is full price. The annotations already cover safety (readOnly, idempotent, non-destructive), so this cost and caching detail is the value-add; only the response shape and per-ID failure behavior are left implicit.

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?

Two sentences, front-loaded with the capability and followed by the input convention and cost caveats; no filler, and the parenthetical cost qualifiers are compactly parenthesized rather than turned into separate sentences.

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 two-parameter read tool with full schema coverage and no output schema, the description covers input form, batching limits, caching and cost well. What it leaves out is what the response looks like per post and what happens when only some of the 20 IDs are invalid, which matters for a batch error case.

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 both ids and fresh are already documented identically in the schema ('comma-separated shortcodes or ids', 'skips the cache... full price'). The description restates rather than extends that meaning, which is the baseline 3 case.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete return payload (like, comment and view counts), a bounded resource set (1 to 20 posts) and the batch framing 'in one call', which is enough to separate it from the single-post sibling get_post without opening any schema.

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: batching up to 20 IDs and the credit cost hint that this is the efficient path for multiple posts, but there is no explicit 'use get_post for a single post' or 'do not use for X' guidance, and no prerequisite/auth context. Enough to proceed, not enough to route with confidence.

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.