Skip to main content
Glama

Document statistics

get_document_stats
Read-only

Views, downloads, average seconds per page and the latest views (who, when, how long) of one document.

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": {
      "document_id": "<document_id>"
    },
    "name": "get_document_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYes
recent_viewsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds value by disclosing the shape of the returned data, including who/when/how long for recent views. However, it does not say whether figures are lifetime or time-bounded aggregates, nor any scope or permission constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

It is a single efficient sentence with no filler, but it is a noun-phrase fragment rather than a front-loaded verb phrase, and 'latest views' is ambiguous for the return values while dropping the tool name's 'statistics' framing into the title only.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and 0% parameter descriptions, the description does partially compensate by listing returned metrics. Still, an agent cannot determine what recent_views does or how statistics are scoped, which is a real gap for a two-parameter tool.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden for both parameters. It never mentions document_id or explains what recent_views controls (presumably how many recent views to include), leaving the bounded 1-100 integer undocumented in meaning.

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?

The description names the resource (one document) and enumerates the metrics returned: views, downloads, average seconds per page, and latest view details. This is clear enough for an agent to know it is a per-document statistics retrieval. It does not differentiate from the sibling list_recent_views, which appears to overlap with the 'latest views' portion.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives such as list_recent_views, get_document_text, or fetch. The overlap with list_recent_views is left entirely to inference, so an agent has no basis for choosing between them.

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