Skip to main content
Glama

Create agent run

create_agent_run
Idempotent

Hands an issue to the agent: creates an agent run in state Ready, which a runner then claims with claim_agent_run. An issue can have only one open run (Ready or Working) - cancel it first to hand the issue off again. A blocked issue can be handed off: its run waits (isBlocked) until every issue blocking it is Completed. While the run is open the issue is locked: edit_issue and delete_issue fail until it's finished or cancelled (status changes and comments still work). Returns the run. Only the issue's assignee can hand it off, with canEdit (see get_issue/list_issues); the issue must be in a Created status, and its epic needs Created, InProgress and Review statuses (see list_statuses) - the agent moves it through them.

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": {
      "issueKey": "<issueKey>"
    },
    "name": "create_agent_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
issueKeyYesThe issue's key, e.g. 'BRD-42'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the locking side effect ('edit_issue and delete_issue fail until it's finished or cancelled' while status changes and comments still work), the deferred-execution case for blocked issues (run waits with isBlocked), and the return value ('Returns the run'). The idempotentHint=true annotation is consistent with the one-open-run rule rather than contradicted by it.

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?

Front-loaded with the core action and the state it creates, then layers constraints and side effects; nearly every clause carries actionable information. It is a dense single paragraph, however, and the permission/status prerequisites would scan better as a separated list.

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?

For a one-parameter mutation with no output schema, the description covers everything an agent needs: prerequisites, authorization, the locking side effect, the blocked-issue behavior, the return value, and the sibling that consumes the created run. Nothing material is left to inference.

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?

The schema already documents the single issueKey parameter at 100% coverage, including the 'BRD-42' example, so the description's baseline is 3. It adds qualifying meaning about which issues are eligible for handoff, but nothing further about the key's format or handling.

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 concrete verb and resource ('Hands an issue to the agent: creates an agent run in state Ready') and immediately distinguishes itself from the sibling that follows it ('which a runner then claims with claim_agent_run'). An agent can separate this from claim_agent_run/start_agent_run without opening any schema.

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?

Supplies explicit preconditions (only the assignee, requires canEdit, issue must be in a Created status, epic needs Created/InProgress/Review statuses) and an explicit exclusion path ('An issue can have only one open run... cancel it first to hand the issue off again'). It also names where to obtain each prerequisite (get_issue/list_issues, list_statuses).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.