Skip to main content
Glama

Comment Stats

get_comment_stats
Read-onlyIdempotent

Comment count statistics

Returns the total number of validated comments made on records. When no archive_code is provided, the global total is returned. When an archive code is provided, the count for that archive is returned. Note: version 1.1 uses archive_code instead of archive.

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_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
archive_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so safety is covered. The description adds genuinely new behavioral facts: only 'validated' comments are counted, and the version 1.1 rename from `archive` to `archive_code` — useful disambiguation for an agent recalling older usage.

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?

The core behavior is front-loaded in the first sentence, and the conditional rules follow in the order an agent would need them. The leading 'Comment count statistics' line is a mild restatement of the title and could be dropped, but nothing else is wasted.

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 single-optional-parameter read aggregate with no output schema, the description covers what is counted, what the two modes return, and the parameter-version caveat. It could be slightly stronger on the meaning of 'validated' and the shape of the returned count object, but nothing essential to calling it is missing.

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 0% for the single archive_code parameter, so the description must carry the meaning — and it does explain the global-vs-scoped effect of supplying it. However, it adds nothing about expected format, casing, or a list source for archive codes (get_archives is a sibling, unmentioned), so the agent still has to guess the value syntax.

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: 'Returns the total number of validated comments made on records.' This is clearly distinct from the name-only 'Comment count statistics' header and separates it from siblings measuring other resources. It does not explicitly differentiate itself from the other get_*_stats siblings, but the resource noun (comments) does that work implicitly.

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 description gives conditional usage rules — omit archive_code for the global total, supply it for a per-archive count — which tells the agent how to drive the parameter. It offers no explicit when-to-use-versus-alternative guidance, such as pointing at get_record_stats or get_archives for related aggregates, so usage is implied rather than prescribed.

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.