Skip to main content
Glama

get_log_stats

Get aggregate statistics: total count, level breakdown, source breakdown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoEnd time (ISO 8601 or YYYY-MM-DD)
fromNoStart time (ISO 8601 or YYYY-MM-DD)
hoursNoLookback hours (1-168, default 24)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden for behavioral disclosure. It does reveal that the tool returns aggregate statistics rather than raw logs and names the breakdown dimensions, but it does not mention side effects, permissions, pagination, pagination, or response format, and read-only behavior is only implied by 'Get'.

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?

The description is a single sentence with zero filler, leading with the action and immediately enumerating the three relevant output categories. Every phrase adds value.

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?

For a tool with three optional, fully documented parameters and no output schema, the description gives the essential purpose and result shape at a high level. It is still missing usage routing versus siblings, and it does not describe the output format, leaving it adequate but not complete.

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 the schema already provides meaning for to, from, and hours, which justifies a baseline of 3. The description adds no parameter-level detail beyond saying the tool is about aggregate stats.

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 uses a specific verb ('Get') and resource ('log stats), and it lists the concrete outputs (total count, level breakdown, source breakdown), making the purpose clear. It doesn't explicitly name or differentiate itself against a sibling like query_logs, so it stops short of full differentiation.

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 about when to use this tool versus alternatives such as query_logs, get_recent_errors, or get_cost_summary. The aggregation wording implies a general use case, but no explicit when-to-use or when-not-to-use guidance is given.

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