Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as FlowRunner Prompt to Flow. If you published it, claim ownership there.

Get run logs

get_flow_instance_logs
Read-only

Log messages one run wrote; instanceKey comes from list_flow_instances. Pages run from the newest messages backwards: the first call returns the latest limit messages (default 100, max 1000), offset skips that many newest messages; each page is in time order (oldest to newest). Filters: nodeId (one block), level, textFilter (text contains), period (lastHour, last24h, last7d, last30d) or a custom range from/to (ISO time); not both. Result: { executionId, logs [{ at (ISO UTC), level, nodeId, nodeName, text }], hasMore (older messages exist), nextOffset (the offset of the older page) }. Text longer than 1000 characters is shortened. A page larger than the response size budget keeps its newest messages; hasMore and nextOffset continue from there. olderRunsHiddenByPlan: true replaces the result when the run is not visible. An instanceKey that matches no run returns an empty list.

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": {
      "workspaceId": "<workspaceId>",
      "instanceKey": "<instanceKey>"
    },
    "name": "get_flow_instance_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo
levelNo
limitNo
nodeIdNo
offsetNo
periodNo
textFilterNo
instanceKeyYes
workspaceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds substantial non-obvious behavior on top: newest-first paging with pages returned in oldest-to-newest order, 1000-character text truncation, response-budget trimming that keeps the newest messages, the olderRunsHiddenByPlan substitution, and empty-list behavior for an unknown instanceKey. This is genuinely useful disclosure, though it omits any stated authorization or visibility requirements for reading another user's run logs.

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 purpose, then paging, then filters, then result shape — a sensible order with essentially no filler. It is a dense single paragraph, though, with paging, filtering, truncation, and result shape packed together, which makes it harder to scan than it needs to be for ten parameters.

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?

There is no output schema, and the description compensates by spelling out the return shape (executionId, logs with at/level/nodeId/nodeName/text, hasMore, nextOffset) plus the truncation and response-budget edge cases. For a 10-parameter read tool with two enums, an agent has enough to call it correctly on the first attempt.

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 carries the full burden and mostly meets it: it explains limit's default (100) and max (1000), offset's meaning in terms of newest messages skipped, the four period enum values implied by name, from/to as ISO times, and that nodeId targets a single block. The main gap is workspaceId, which is required but never mentioned or scoped.

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+resource: "Log messages one run wrote", and immediately anchors the required instanceKey to its source tool (list_flow_instances). That distinguishes it from siblings like get_flow_instance and get_flow_instance_block without needing their schemas.

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?

States the prerequisite for instanceKey, the mutually exclusive filter styles ("period ... or a custom range from/to ... not both"), and how to page backwards with offset/nextOffset. It does not explicitly say when to prefer this over get_flow_instance_block for inspecting a run, leaving one routing decision to inference.

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