Skip to main content
Glama

Get Automation Stats

get-automation-stats
Read-onlyIdempotent

Return run totals by status and outcome for an automation.

Input Schema

NameRequiredDescriptionDefault
idYesAutomation ID (aut_xxx).
sinceNoISO 8601 start time.
untilNoISO 8601 end time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds that the result is aggregated counts rather than individual runs, which is useful context, but it says nothing about default time windowing, aggregation granularity, or timezone handling.

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?

A single front-loaded sentence with no filler. It is efficient, though the extreme brevity leaves nothing to orient the caller beyond the core purpose.

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 simple read-only aggregation with fully described params and no output schema, the description conveys the return shape at a high level. It omits default date-range behavior and the fact that output is aggregate counts rather than a list, which an agent deciding between this and list-automation-runs would want.

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 100%, so id, since and until are already documented, including the aut_xxx format and ISO 8601 formats. The description adds no further semantics such as whether the range is inclusive, what happens when since/until are omitted, or which timezone applies.

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?

Specific verb-plus-resource: returns aggregated run totals broken down by status and outcome for one automation. It is distinguishable from get-automation (entity detail) and list-automation-runs (raw runs), though it does not explicitly name the near-sibling get-automation-step-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 versus get-automation-step-stats or list-automation-runs, and no prerequisites or exclusions. The agent must infer the choice from the name alone.

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.