Skip to main content
Glama

get_flow_instance_block

Input, output and error of one execution of a block in a run. One of two ways to call: (1) blockExecutionKey from get_flow_instance (failure.blockExecutionKey, steps[].failedIterations[].blockExecutionKey); (2) instanceKey (from list_flow_instances) with nodeId and optional iteration (default 0, position inside the innermost loop). When several executions share that nodeId and iteration (nested loops) the result is matches [{ match, startedAt, failed, blockExecutionKey }]; repeat the call with match or a blockExecutionKey. Do not mix the two ways. Result: success, error { message, httpCode, errorCode }, input, output, retryAttempts (attempt, at, httpStatus, transportErrorType, errorMessage, delayBeforeNextMs, responseBody); way (2) also returns nodeId, iteration, startedAt, durationMs. Data is returned as recorded. Long values are shortened; truncated lists { path, kind, originalSize } for each cut. path (the same syntax as expressions, e.g. output.items.[3].body, output.items.[last]; paths start with input, output or retryAttempts; copy them from truncated[]) returns only that branch in full detail. maxChars (2000..60000, default 30000) is the size budget of the response. A block with no executions in the run returns executed: false; an iteration it did not run returns executed: false with ranIterations. A run whose data is too large returns its structure with tooLarge: true. olderRunsHiddenByPlan: true replaces the result when the run is not visible.

Input Schema

NameRequiredDescriptionDefault
pathNo
matchNo
nodeIdNo
maxCharsNo
iterationNo
instanceKeyNo
workspaceIdYes
blockExecutionKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so thoroughly: data returned as recorded, long values shortened with truncated lists { path, kind, originalSize }, a maxChars response budget, and explicit terminal states (executed: false with ranIterations, tooLarge: true, olderRunsHiddenByPlan: true). Permission/visibility behavior is at least flagged rather than hidden.

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?

Purpose is front-loaded and followed by calling modes, then result shape, then edge cases, so the ordering is sensible and nearly every clause carries unique information. The prose is dense and semicolon-chained, making it slower to scan than it needs to be, but there is little true filler.

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?

For a complex 8-parameter read tool with no annotations and no output schema, the description covers return fields (success, error, input, output, retryAttempts and its subfields), the per-mode extra fields (nodeId, iteration, startedAt, durationMs), truncation behavior, and degrade states. An agent has enough to invoke it correctly on the first try.

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 description coverage is 0%, so the description must supply all meaning, and it does for blockExecutionKey, instanceKey, nodeId, iteration (default 0, position inside the innermost loop), match, path (syntax plus concrete examples like output.items.[3].body), and maxChars (range 2000..60000, default 30000). The required workspaceId is never explained, which is the only real gap against 8 parameters.

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: 'Input, output and error of one execution of a block in a run.' It also distinguishes itself from siblings by naming the two upstream sources of its keys (get_flow_instance for blockExecutionKey, list_flow_instances for instanceKey), so an agent can place it in the tool graph without opening a schema.

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?

Gives explicit calling guidance: two mutually exclusive ways to call, 'Do not mix the two ways,' and a defined follow-up path when nested loops produce multiple matches ('repeat the call with match or a blockExecutionKey'). It does not contrast itself with adjacent diagnostic tools like get_flow_instance_logs, which is the only missing routing guidance.

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