Skip to main content
Glama
BetterLinearMCP

BetterLinearMCP

Run Workflow

run_workflow

Execute sequential multi-step workflows that call MCP tools, pass prior step outputs into later steps, and validate required scopes before any tool runs.

Instructions

Execute a sequential multi-step workflow pipeline.

Each step calls an MCP tool, optionally extracts a value from the result, and stores it under output_key. Later steps can reference prior outputs via $steps.{output_key}.{field} in params.

Scope enforcement: every step tool is checked against user_scopes before execution. If the caller lacks required scopes for any step, the workflow is rejected before any tool runs.

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": {
      "access_token": "<access_token>",
      "steps": "<steps>"
    },
    "name": "run_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYes
user_scopesNo
access_tokenYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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, and it does disclose valuable behavior: steps run sequentially, each can extract and store values, and all steps are scope-checked upfront so a workflow is rejected before any tool runs. It omits a critical trait for an executor, namely what happens if a mid-sequence step fails after earlier steps already ran (partial writes, rollback, or abort), and says nothing about rate limits or concurrency.

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?

Three short paragraphs with the core purpose front-loaded, then the chaining mechanism, then the scope constraint. No filler sentences, though the reference to 'output_key' and 'params' before those fields are defined makes the second paragraph slightly harder to parse than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation here, but for a tool with three undocumented parameters and zero schema coverage the description should specify the step object's structure and failure semantics. It covers execution order and scope enforcement well while leaving the practical calling details and error behavior incomplete.

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?

Schema description coverage is 0%, so the description must compensate, and it partly does by explaining output_key semantics and the $steps.{output_key}.{field} reference syntax in params. However, it never documents the shape of an entry in steps (which key names the tool to call, how params are supplied) or what access_token is for, leaving the required steps array opaque.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a specific verb and resource ('Execute a sequential multi-step workflow pipeline') and the mechanism described (steps calling MCP tools, output_key capture) makes clear this is a workflow orchestrator, distinct from all siblings like create_issue or get_issue. It stops short of 5 only because it never explicitly contrasts itself with any alternative or names the single-tool alternative pattern.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the chaining mechanism ($steps.{output_key}.{field}) signals that this tool is for cases where one tool's output feeds another, but there is no explicit 'use this when X, use individual tools when Y' guidance. The scope-rejection rule is a prerequisite note, not a when-to-use rule.

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