Skip to main content
Glama

Get Flow

get_flow
Read-onlyIdempotent

Fetch one flow by id (from list_flows or from the flows of an issue's impact): calls and failures in the last day and in the asked range against its baseline, the deployment environments it ran in with their call counts, up to ten failedCalls sampled newest first from the range, each with a traceId, its span status, its HTTP status, how long it took and, when an exception was linked to it, the fingerprint and exception type of the issue behind it, then every issue seen on this flow with what callers got. unexplainedFailedCalls is how many failures in the range no issue accounts for. To read what went wrong on a route: call this, take the fingerprint off the newest failedCalls entry and call get_issue with include=occurrences on it for real frames, or take that entry's traceId to the trace tools for the whole request; when the entry carries no fingerprint the failure left no exception, so the trace is the only lead. Pass from and to as epoch seconds or ISO instants to look at a window other than the last 21 days (from defaults to 21 days before to, to defaults to now), and environment to count one deployment environment only. Pass includeSeries=true to also get the calls and failures per bucket and the exceptions per bucket by issue, which is large; leave it out when you only need the numbers, the samples and the issues.

Input Schema

NameRequiredDescriptionDefault
idYesThe flow id (from list_flows, or from the flows of an issue's impact)
toNoEnd of the window, as epoch seconds or an ISO instant (default now)
fromNoStart of the window, as epoch seconds or an ISO instant (default 21 days before to)
environmentNoOnly count what happened in this deployment environment, such as production (default every environment)
includeSeriesNotrue to also answer the calls and failures per bucket and the exceptions per bucket by issue (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Added
  3. Removed
  4. Added
  5. Removed
  6. Added
  7. Removed
  8. Added
  9. Removed
  10. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive, so the bar is lower, yet the description still discloses substantial behavior: a ten-item newest-first sample cap, the 21-day default window, that includeSeries output 'is large', and the semantics of unexplainedFailedCalls. That is real operational context beyond the structured fields.

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?

Front-loads the core purpose and then the diagnostic workflow, so the important material comes first. It is dense and packed into long comma-heavy sentences, but nearly every clause carries information an agent needs; only the sheer length keeps it from a 5.

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

Completeness5/5

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

With no output schema, the description carries the full burden of describing the return shape, and it does: calls/failures vs baseline, environments with counts, sampled failedCalls fields, per-issue outcomes, and unexplainedFailedCalls. Defaults and the includeSeries switch are covered, so nothing needed to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds meaning: it explains the interaction between from and to defaults, that environment restricts counting to a single deployment environment, and that includeSeries should be left out when only numbers/samples/issues are needed. It goes beyond restating the schema without fully specifying value formats.

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

Purpose5/5

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

Opens with a specific verb and resource ('Fetch one flow by id') and immediately situates it against siblings by naming the two sources of an id (list_flows, an issue's impact). An agent can tell exactly what this returns without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit routing: to read what went wrong on a route, take the fingerprint from the newest failedCalls entry and call get_issue with include=occurrences, or take the traceId to the trace tools; and states that a missing fingerprint means the trace is the only lead. It also states when to omit includeSeries. This is when-to-use, alternatives, and a conditional fallback.

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