Skip to main content
Glama

run_chain

Start a named thinking chain to guide multi-step reasoning, routing to master when no custom chain matches. Use default or custom chains for freeform or checklist-based problem-solving.

Instructions

Start a thinking chain by name. When the task shape clearly matches a chain, call that chain directly; when nothing matches or the task needs multi-step reasoning, call run_chain("master") to route between PASS (no chains), "default" (freeform step-by-step thinking) and custom chains. Checklist chains return one complete checklist (single-shot). Staged/freeform chains open a session; continue with advance_chain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesChain name, e.g. "master", "default", or a custom chain from list_chains
Install Server

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral disclosure burden. It does disclose important behaviors: rerouting through master, single-shot checklist returns, session-based freeform chains, and continuation via advance_chain. It stops short of detailing the exact session-start return value or error behavior.

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 four sentences long, and every sentence earns its place: start action, routing guidance, checklist behavior, and session continuation. The core purpose is front-loaded and there is no filler.

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 one-parameter tool with no output schema, the description covers start, routing, and next-step behavior well. The main omissions are a fuller explanation of what PASS means and what the immediate return value is when a session is opened.

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?

The schema already covers the only parameter with examples, and the description reinforces and extends that meaning by explaining how "master" and "default" are used and tying custom chains to list_chains. This adds practical routing context beyond the schema's basic name field.

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 opens with a clear verb and resource: 'Start a thinking chain by name.' It differentiates from siblings by explicitly naming advance_chain for continuation and list_chains for discovering custom chains, so an agent can tell which tool to use.

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?

It gives explicit routing guidance: call a matching chain directly when the task shape matches, otherwise use run_chain("master") to route between PASS, "default", and custom chains. It also clarifies that checklist chains are single-shot while staged/freeform chains open a session and should be continued with advance_chain.

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

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/keoy7am/kata-mcp'

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