Skip to main content
Glama
sonisoft-cnanda

now-sdk-ext-mcp

Get Flow Execution Details

get_flow_execution_details

Retrieve detailed flow execution data including per-action timing, inputs, outputs, and metadata to diagnose step failures and understand flow behavior.

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
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).
scopeNoScope sys_id for the ProcessFlow API transaction scope query parameter. If omitted, the API uses the default scope.
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?

With no annotations, the description carries the full burden. It discloses the API endpoint, the requirement for logging, and behavior when data is unavailable (includes a notice). It implies read-only diagnostic nature. Could mention idempotency or lack of side effects, but overall transparent.

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?

Concise at ~150 words, front-loaded with purpose, followed by usage, API details, important note, and workflow. No wasted sentences; every part serves a purpose.

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?

Despite no output schema, the description covers what the response contains (per-action details, metadata) and handles the error case. Given the tool's diagnostic focus and lack of pagination, this is complete.

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 coverage is 100%, so baseline is 3. The description adds value by explaining context_id's source (from test_flow, execute_flow, etc.) and guiding when to enable include_flow_definition ('only when you need to inspect raw flow structure'). This aids correct usage beyond schema descriptions.

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 clearly identifies the tool as retrieving rich execution details for a flow context, including per-action timing, inputs, outputs, and metadata. It positions itself as the primary diagnostic tool after test_flow or execute_flow, distinguishing it from sibling tools like get_flow_context_status or get_flow_logs.

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?

Explicitly states when to use: after test_flow or execute_flow. Provides a typical workflow and mentions the prerequisite that flow operations logging must be enabled. This gives clear guidance on appropriate usage and context.

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