Skip to main content
Glama

summarize_phases

Read-onlyIdempotent

Count source events by phase and return the underlying timestamped evidence, so you can verify phase totals against original event data.

Instructions

Count source events by phase, returning the underlying timestamped evidence.

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": {
      "events": "<events>"
    },
    "name": "summarize_phases"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuine behavioral information beyond that: it discloses that the result is not just counts but includes the underlying timestamped evidence, which affects how an agent should consume the output.

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?

One front-loaded sentence with no filler: the counting action comes first and the return-content note follows. It is efficient, though its brevity leaves open the parameter questions noted elsewhere.

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?

An output schema exists, so return format need not be explained in prose. However, for a tool whose only input is an unspecified free-form event array, the definition leaves the caller without enough information to shape valid input, which is the remaining gap in an otherwise low-complexity 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?

The single parameter 'events' is an untyped free-form array of objects with 0% schema description coverage, and the description adds nothing about what each event must contain (phase field, timestamp field, ordering, empty-array behavior). With that coverage gap, the description should compensate and does not.

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?

Description gives a specific verb ('Count') and resource ('source events by phase') plus a note that raw timestamped evidence is returned. That clearly separates it from a plain search or validation tool, though it does not explicitly name the sibling alternatives.

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 when-to-use or when-not-to-use guidance, and no mention of search_events or validate_timeline as alternatives. The aggregation framing only implies a use case; the agent must infer that counting by phase is the selecting condition.

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