Skip to main content
Glama
sonisoft-cnanda

now-sdk-ext-mcp

Get Flow Execution Details

get_flow_execution_details
Read-only

Get rich execution details for a flow context: per-action timing, inputs, outputs, and metadata. Diagnose failures by inspecting what each action did and identifying the failed step.

Instructions

Get rich execution details for a flow context: per-action timing, inputs, outputs, and high-level metadata (state, runtime, who ran it, test vs production).

This is the primary diagnostic tool after test_flow or execute_flow — use it to understand what each action did, identify which step failed, inspect inputs and outputs, and iterate on the flow definition.

Uses the ProcessFlow operations API (GET /api/now/processflow/operations/flow/context/{id}), the same endpoint Flow Designer uses to display execution details.

IMPORTANT: Requires flow operations logging to be enabled on the instance. If the execution report is unavailable, the response will include a notice explaining why.

Typical workflow: test_flow → get_flow_execution_details → diagnose → modify flow → test_flow again

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoScope sys_id for the ProcessFlow API transaction scope query parameter. If omitted, the API uses the default scope.
instanceNoThe ServiceNow instance auth alias to use. This is the alias configured via `now-sdk auth --add` (e.g., "myinstance", "prod", "test"). The user will typically refer to this by name when saying things like "on my myinstance instance". If not provided, falls back to the SN_AUTH_ALIAS environment variable.
context_idYesThe flow context sys_id returned by test_flow, execute_flow, execute_subflow, or execute_action (the contextId field in the result).
include_flow_definitionNoWhether to include the full flow definition snapshot in the response. Default: false. Enable only when you need to inspect the raw flow structure.
Behavior4/5

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

Annotations already provide readOnlyHint and openWorldHint, so the bar is lower. The description adds valuable context: it specifies the underlying ProcessFlow API endpoint, states that flow operations logging is required, and explains that an unavailable report will include a notice. This goes beyond what annotations convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured: a concise purpose statement, followed by usage guidance, endpoint context, an important prerequisite, and a typical workflow. Every sentence adds value and the most important information is front-loaded.

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?

Since there is no output schema, the description compensates by listing the types of information returned (per-action timing, inputs, outputs, metadata) and provides context about the endpoint and prerequisites. It does not detail error handling or the exact response structure beyond the notice, but it is complete enough for a diagnostic tool of this complexity.

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?

The input schema has 100% coverage with descriptions for all four parameters. The tool description does not add extra parameter-specific semantics beyond what the schema already provides, so the baseline of 3 is appropriate.

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?

The description uses a specific verb 'Get' and specifies the resource 'rich execution details for a flow context' including per-action timing, inputs, outputs, and high-level metadata. It clearly distinguishes itself from sibling tools like get_flow_context_status and get_flow_logs by emphasizing detailed per-action diagnostics and positioning itself as the primary diagnostic tool.

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 explicitly states when to use the tool: after test_flow or execute_flow, for diagnosing failures, inspecting inputs/outputs, and iterating on flow definitions. It also includes a typical workflow and a prerequisite (flow operations logging must be enabled). It does not explicitly mention when not to use it or name alternative tools, so it misses the top score.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sonisoft-cnanda/now-sdk-ext-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server