Skip to main content
Glama

nautobot_run_workflow

Run pre-built composite workflows to execute multi-step Nautobot operations and aggregate multiple API calls into one request, simplifying complex automation tasks.

Instructions

Execute a pre-built composite workflow aggregating multiple API calls.

Composite workflows encapsulate multi-step operations that would otherwise require several sequential nautobot_call_nautobot calls. Use nautobot_api_catalog (include_workflows=True) to discover available workflows and their required parameters.

Args: workflow_id: Workflow name (e.g., 'bgp_summary', 'firewall_summary', 'compare_device', 'onboard_config'). See nautobot_api_catalog for the full list. params: Workflow-specific parameters. Required params vary by workflow. Example for bgp_summary: {"device": "core-rtr-01", "detail": false} Example for compare_device: {"device_name": "rtr-01", "live_data": {...}}

Returns: Envelope dict with: - workflow: workflow_id echo - device: device identifier used - status: 'ok' or 'error' - data: workflow-specific output (serialized Pydantic model or dict) - error: error message if status=error, else null - timestamp: ISO 8601 UTC timestamp

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": {
      "workflow_id": "<workflow_id>",
      "params": "<params>"
    },
    "name": "nautobot_run_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes
workflow_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/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 response envelope, status='ok'/'error', and the error field, which is useful. However it says nothing about permissions, side effects (workflows like 'onboard_config' plausibly mutate state), idempotency, or whether execution is safe to retry — significant omissions for an execution tool.

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?

The distinguishing line is front-loaded before the docstring-style Args/Returns blocks, and each section is short. The Returns block is somewhat redundant given a formal output schema exists, but it is not excessive.

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?

For a two-parameter composite executor with a free-form params object, the description supplies the discovery path, naming conventions, examples, and return shape — enough to invoke correctly. The remaining gap is the absence of any safety or permission context for an execution tool with no annotations.

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 0% (a free-form params object with additionalProperties), so the description must compensate, and it largely does: workflow_id is tied to concrete names ('bgp_summary', 'compare_device') and params are illustrated with real payloads. It still leaves most workflows undocumented and offloads required-parameter lookup to another tool, hence not a 5.

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 ('Execute a pre-built composite workflow aggregating multiple API calls') and immediately distinguishes itself from the sequential alternative ('would otherwise require several sequential nautobot_call_nautobot calls'). An agent can identify the tool's role without opening the 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?

Explicitly directs the agent to call nautobot_api_catalog with include_workflows=True first to discover workflows and their required parameters, which is a concrete prerequisite. It implies but never states the inverse rule (single operations should use nautobot_call_nautobot directly), so it stops short of full when/when-not guidance.

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