Skip to main content
Glama

Get Load Test Failure Patterns

getLoadTestFailurePatterns
Read-onlyIdempotent

Group the calls of one load-test RUN that did not pass into named failure patterns, by the run's id (from listLoadTestRuns). Returns totalCalls, failedCalls, unclassified (failed calls no rule matched), late starts, and patterns, most calls first: each with a label, owner (platform, carrier, system-under-test, test-definition or unknown: who has to fix it), a one-sentence description, count, share of failed calls, calls per lane, first and last seen and up to five example call ids; plus a timeline of failures and calls in flight. Takes optional scope: group (default, every lane started with the run) or lane (this run only). Use when: the user asks why a load test failed or whose problem the failures are. Read an example call with getRunResults. Read-only. Needs testing:read.

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": {
      "id": "<id>"
    },
    "name": "getLoadTestFailurePatterns"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesLoad-test RUN identifier (the runId, NOT the config ID).
scopeNo`group` (default): every lane started with this run. `lane`: this run only.group

Output Schema

NameRequiredDescriptionDefault
lanesYes
runIdYes
scopeYes
groupIdYesThe group the run was started in; null for a one-config run.
patternsYesOne entry per pattern with at least one call, most calls first.
timelineYes
lateStartsYesCalls whose system under test first spoke later than the late-answer threshold.
totalCallsYes
failedCallsYesCalls that did not pass (failed
rulesVersionYes
unclassifiedYesFailed calls no rule matched
callsOverTimeYesCalls over the run, for a chart. Buckets start at the earliest call start; the size is the smallest of 5, 15, 30, 60 and 300 seconds that keeps the run within 2880 buckets (a longer run is cut). An empty run gives bucketSecs 5 and no buckets.
lateStartsPassedYesOf `lateStarts`

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / callsOverTime
      Added value: +{
      +  "description": "Calls over the run, for a chart. Buckets start at the earliest call start; the size is the smallest of 5, 15, 30, 60 and 300 seconds that keeps the run within 2880 buckets (a longer run is cut). An empty run gives bucketSecs 5 and no buckets.",
      +  "properties": {
      +    "bucketSecs": {
      +      "enum": [
      +        5,
      +        15,
      +        30,
      +        60,
      +        300
      +      ],
      +      "example": 5,
      +      "type": "integer"
      +    },
      +    "buckets": {
      +      "items": {
      +        "properties": {
      +          "inFlight": {
      +            "description": "Calls in flight at the bucket's start (started at or before t, ended after t). A call with no end time is never in flight at a bucket start.",
      +            "type": "integer"
      +          },
      +          "sent": {
      +            "description": "Calls whose start falls in the bucket [t, t + bucketSecs).",
      +            "type": "integer"
      +          },
      +          "t": {
      +            "description": "The bucket's start",
      +            "in seconds from the earliest call start.": null,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "t",
      +          "sent",
      +          "inFlight"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "bucketSecs",
      +    "buckets"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "runId",
      -  "groupId",
      -  "scope",
      -  "rulesVersion",
      -  "totalCalls",
      -  "failedCalls",
      -  "unclassified",
      -  "lateStarts",
      -  "lateStartsPassed",
      -  "patterns",
      -  "timeline",
      -  "lanes"
      -]New value: +[
      +  "runId",
      +  "groupId",
      +  "scope",
      +  "rulesVersion",
      +  "totalCalls",
      +  "failedCalls",
      +  "unclassified",
      +  "lateStarts",
      +  "lateStartsPassed",
      +  "patterns",
      +  "timeline",
      +  "callsOverTime",
      +  "lanes"
      +]
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so 'Read-only' is largely redundant, but 'Needs testing:read' adds the auth scope the annotations do not cover. Beyond that it discloses genuinely behavioral facts: the unclassified bucket semantics, the owner taxonomy including 'unknown', and what the timeline contains.

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-loaded with the action and the required id, then scope, then usage, then access requirements. It is dense and mostly earns its words, though the long enumeration of return fields overlaps an existing output schema and pushes the paragraph toward run-on length.

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?

Given a 2-parameter read tool with full schema coverage and an output schema, nothing an agent needs is missing: it knows the required id's source, the two scope modes, the auth scope, and when to reach for it versus getRunResults.

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 the schema already documents both parameters, including the same group/lane distinction. The description only adds the provenance hint that ids come from listLoadTestRuns, which the schema states more briefly as 'NOT the config ID' – marginal value over structured data.

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?

States a specific verb and resource: 'Group the calls of one load-test RUN that did not pass into named failure patterns, by the run's id'. It also distinguishes the resource from adjacent ones (run vs config id) and points at listLoadTestRuns as the id source.

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 an explicit trigger ('Use when: the user asks why a load test failed or whose problem the failures are') and names the follow-up alternative ('Read an example call with getRunResults'). It also tells the agent where the required id comes from, so the tool is not selected in a vacuum.

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.