Skip to main content
Glama

Count posts

count_posts
Read-onlyIdempotent

Exact post counts for the organization without paging list_posts: { total, byStatus, scheduledNext7Days }. byStatus has every status (draft, scheduled, pending_approval, awaiting_plan, queued, processing, complete, failed, removed), 0 when none. scheduledNext7Days is scheduled or queued posts due between now and 7 days from now. accountId and platform filter exactly as in list_posts.

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

Input Schema

NameRequiredDescriptionDefault
platformNoOnly posts to this network, e.g. "tiktok".
accountIdNoOnly posts to this account (an id from list_accounts).
organizationIdNoWhich organization to act in: an id from list_organizations. Leave out for this connection's default organization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely new behavioral detail: every status key that appears in byStatus is enumerated, zero-filling is specified ("0 when none"), and scheduledNext7Days is defined as scheduled-or-queued posts due within a rolling 7-day window. It omits minor operational details such as whether counts are timezone-relative to the connection, but the disclosure is well beyond 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core capability, then the return shape, then the status enumeration and the 7-day rule. Every clause carries information — even the parenthetical status list is load-bearing because there is no output schema to enumerate those keys.

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 correctly takes on the burden of explaining return values in detail, and with three optional params all schema-documented the input side is covered. Minor gaps remain: whether `total` includes removed posts (given `removed` is a byStatus key) and what timezone "now" refers to. These are small ambiguities, not blocking ones.

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 all three parameters are already documented, and the description mainly cross-references list_posts for filter behavior rather than adding new syntax or semantics. The `{ total, byStatus, scheduledNext7Days }` payload description is useful but concerns output, not parameters. Baseline 3 is appropriate.

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 specific verb+resource (exact post counts) and immediately distinguishes itself from the sibling it could be confused with: "without paging list_posts". It goes further to enumerate the exact response keys `{ total, byStatus, scheduledNext7Days }`, so an agent knows both what it does and what it returns.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives a clear selection rule: use this when you want counts rather than a paged listing of posts. It also states that accountId and platform "filter exactly as in list_posts", transferring known semantics to this tool. It stops short of explicit when-not conditions (e.g., needing per-post details still requires list_posts), but the routing intent is unambiguous.

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.

Resources