Skip to main content
Glama

Get Statistics

get_statistics
Read-onlyIdempotent

Retrieve journal statistics and analytics, including optional multi-project entry breakdowns, to track writing activity and project progress.

Instructions

Get journal statistics and analytics (Phase 2: includes project breakdown)

Input Schema

NameRequiredDescriptionDefault
timeNoAnti-Hallucination Hint: Use group_by instead of timeframe or time.
periodNoAnti-Hallucination Hint: Use group_by instead of timeframe or period.
end_dateNo
group_byNoweek
timeframeNoAnti-Hallucination Hint: Use group_by instead of timeframe or period.
start_dateNo
use_test_dbNo
workspace_idNoOptional workspace isolation identifier (e.g. "alpha"). Do not use numeric project IDs or "workspace" as the key.
project_numberNoAnti-Hallucination Hint: get_statistics cannot be filtered by project_number. It always returns global stats. Use project_breakdown: true instead.
project_breakdownNoSet to true to return multi-project entry breakdown across all registered projects (workspace_id: "*").

Output Schema

NameRequiredDescriptionDefault
codeNoError code (e.g. VALIDATION_ERROR, INTERNAL_ERROR)
errorNoHuman-readable error message
detailsNoAdditional error context
groupByNo
successNo
categoryNoError category (validation, query, connection, internal)
dateRangeNo
suggestionNoSuggested fix for the error
recoverableNoWhether the error is recoverable
totalEntriesNo
activityTrendNo
causalMetricsNo
entriesByTypeNo
decisionDensityNo
entriesByPeriodNo
projectBreakdownNo
aggregated_errorsNoDetails of individual errors in a multi-step operation
relationshipComplexityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv9.0.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered structurally. The description adds essentially nothing behavioral beyond the vague 'Phase 2' note — no mention of default time range, aggregation granularity, cost of project_breakdown across all projects, or workspace scoping behavior.

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?

One short parenthetical sentence is front-loaded and wastes no words, but its brevity comes from omission rather than economy — the '(Phase 2: ...)' internal release note is the only content and carries little operational value.

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

Completeness2/5

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

For a ten-parameter analytics tool with a defaulted group_by, date range, workspace isolation, and a cross-project mode, the description is far too thin; an agent cannot tell what it will receive or how the aggregation knobs interact. The existence of an output schema offsets return-value documentation somewhat, but the invocation-side gaps remain.

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 coverage is 60%, and the schema's own descriptions are largely anti-hallucination warnings rather than semantic documentation — group_by lists only a default of 'week' with no enumerated allowed values, and start_date/end_date have no format guidance. The description's '(includes project breakdown)' only obliquely gestures at the project_breakdown parameter and explains none of the ten parameters.

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

Purpose3/5

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

It names a verb and resource ('Get journal statistics and analytics') and parenthetically flags a project-breakdown capability, so the general purpose is legible. But 'statistics and analytics' is never concretized — no mention of which metrics (entry counts, tag distributions, per-project totals) — and it does nothing to distinguish this from close siblings such as team_get_statistics, get_cross_project_insights, or get_vector_index_stats.

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 statement of when to use this tool, when to prefer team_get_statistics, or when project_breakdown should be set versus left at its default. The only routing logic present lives in the schema hints, not the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools