Skip to main content
Glama

run_request_chain

Execute API requests sequentially and pass extracted response values as variables to later requests, enabling workflows like login, token retrieval, and authenticated endpoint calls.

Instructions

Execute a sequence of requests in order, passing extracted values from each response as variables into subsequent requests. Perfect for: login → get token → call authenticated endpoint.

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": {
      "workspace_id": "<workspace_id>",
      "steps": "<steps>"
    },
    "name": "run_request_chain"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYes
confirmedNoSet to true to confirm sending to an external URL after reviewing it
workspace_idYes
stop_on_errorNoHalt the chain if any step returns a non-2xx status

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

A3.5/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 does disclose the core behavioral trait (sequential execution with values extracted from responses injected into later steps). It omits that live HTTP requests with real side effects are sent, that the 'confirmed' flag gates external URLs, and what failure behavior is (stop_on_error is only in the schema).

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?

Two tightly written sentences, front-loaded with the core action and followed by a concrete example. Every clause earns its place; the example chain is more informative than equivalent prose would be.

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?

For a complex multi-step tool with nested step objects, no output schema, and no annotations, the description covers the concept but not the return shape (per-step responses/statuses) or the safety implications of sending real requests. The schema fills in most parameter-level detail, so the gaps are meaningful but not fatal.

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 coverage is 50%, and the schema itself documents the extract/from_path/into_var, extra_vars, confirmed, and stop_on_error parameters well. The description conveys the variable-passing concept behind those fields but adds nothing about workspace_id, the 20-step cap, or how workspace_id scopes the chain.

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 description uses a specific verb and resource ('Execute a sequence of requests in order') and adds the defining behavior of chaining with variable extraction. It is clearly distinguishable from single-request siblings like send_request, though it never names an alternative explicitly.

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?

The 'login → get token → call authenticated endpoint' example conveys the intended scenario, so usage is implied well. However, there is no explicit when-not guidance (e.g., use send_request for a single call, run_data_driven for data-parameterized runs) and no prerequisites such as needing a confirmed flag for external URLs.

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