Skip to main content
Glama

List Loop Screens

list_loop_screens
Read-onlyIdempotent

List screens participants returned to after leaving, indicating backtracking or possible confusion. A revisit means returning to a previously left screen. Use IDs from list_test_blocks to target a block/run; omission uses the documented defaults. Legacy tests also supported.

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": {
      "testId": "<testId>"
    },
    "name": "list_loop_screens"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
runIdNo
testIdYes
blockIdNoSelect one block from list_test_blocks. Omit to infer a sole relevant block; list_insights defaults to all AI blocks. Omit for legacy tests.

Output Schema

NameRequiredDescriptionDefault
dataNo
loopsNo
retryNo
runIdNo
scopeNo
totalNo
statusNo
testIdNo
blockIdNo
messageNo
nextStepNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changed
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / data / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / data / properties / loops / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / data / properties / loops / items / properties / frameIndex / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / data / properties / loops / items / properties / frameIndex / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / data / properties / loops / items / properties / revisitCount / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / data / properties / loops / items / properties / revisitCount / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / data / properties / total / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / data / properties / total / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / loops / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / loops / items / properties / frameIndex / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / loops / items / properties / frameIndex / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / loops / items / properties / revisitCount / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / loops / items / properties / revisitCount / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / nextStep / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / nextStep / properties / arguments / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / retry / properties / arguments / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / total / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / total / minimum
      Added value: +-9007199254740991
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered elsewhere. The description adds genuine context beyond that: it defines 'revisit', notes omission falls back to documented defaults, and flags legacy-test support. What it omits is anything about result scope or volume (beyond the limit param), so it is useful but not rich.

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?

Three short sentences, front-loaded with the purpose before the mechanics, with no filler. The middle sentence ('A revisit means returning to a previously left screen') is somewhat redundant with the opening clause, which keeps it from a 5.

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

Completeness4/5

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

With an output schema present, return values need no explanation, and annotations cover the safety profile, so the remaining burden is parameter guidance and the description addresses the key blockId/runId behavior. The only gaps are the undocumented limit parameter and the absence of any steering away from neighboring list_* tools.

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 only 25% — only blockId carries inline documentation — so the description has to carry weight here. It does explain how blockId/runId are sourced and that omission applies defaults, but it never mentions the limit parameter (default 8, max 20) or the format constraints on testId/runId, so it only partly compensates for the coverage gap.

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 gives a specific verb and resource ('List screens participants returned to after leaving') plus a clarifying definition of what counts as a revisit, so an agent knows exactly what dataset is returned. It does not, however, differentiate itself from conceptually adjacent siblings such as list_dropoff_points or list_paths, leaving the agent to infer the boundary.

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

Usage Guidelines4/5

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

It states the prerequisite sourcing for identifiers ('Use IDs from list_test_blocks to target a block/run') and what happens when blockId is omitted (documented defaults, legacy tests also supported), which is the kind of context needed before calling. It stops short of naming an alternative tool or an explicit when-not-to-use condition, so it lands at clear-context-but-no-exclusions.

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