Skip to main content
Glama

Count the comments waiting

get_comment_counts
Read-only

How many comments are still NEW (not triaged yet, not the account's own, not deleted) — the badge in the app — split by platform, by connected account (keyed by connection id) and by kind (comment or mention). A cheap check before list_comments: 0 pending means there is nothing to triage. Needs the organization's "Let AI assistants answer comments and messages" setting (owner-only; without it the api answers MCP_INBOX_DISABLED) and a connection authorized with the comments/chat permissions — one authorized before they existed must reconnect, and a client that kept its own registration from before then must remove PostRite and add it again.

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

Input Schema

NameRequiredDescriptionDefault
organizationIdNoOrganization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one.

Output Schema

NameRequiredDescriptionDefault
byKindNo
pendingNoComments still NEW (not triaged, not the account's own)
byPlatformNo
byConnectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, but the description adds substantial operational context: the owner-only org setting that gates access, the specific MCP_INBOX_DISABLED error when it's off, and the reconnect/re-register remedies for missing comment permissions. It doesn't discuss cost/rate limits or pagination, but for a count tool that gap is minor.

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 the core definition and the triage-check guidance before the prerequisites, which is the right ordering. The trailing auth/reconnect sentence is dense and slightly overlong, but every clause conveys actionable information rather than filler.

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?

An output schema exists, so return-value shape needn't be spelled out, and the description covers what remains: the counting semantics, the split dimensions, the gating setting, and the permission/reconnect failure paths. Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single organizationId parameter is fully documented in the schema (id from list_organizations, required only in multi-org connections). The description adds nothing about the parameter, but with complete schema documentation and only one optional field, the baseline is met.

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 measurement (count of comments still NEW) with precise inclusion/exclusion rules — not triaged, not the account's own, not deleted — and describes the exact breakdown dimensions (platform, connection id, kind). It is clearly distinguishable from list_comments, which it explicitly contrasts itself with.

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

Usage Guidelines5/5

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

Gives an explicit usage rule: run this as a cheap pre-check before list_comments, and 0 pending means there is nothing to triage. That names the alternative tool and the condition that selects each one, which is exactly what an agent needs for routing.

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