Skip to main content
Glama

Start a Devin session

devin_run

Launch a Devin session for a task and immediately receive its ID, URL, model, branch, and push permission, enabling asynchronous work before waiting for results.

Instructions

Starts a Devin session on a task and returns at once with id, URL, model, branch and push permission. The branch must start with "devin/". Rules are appended to the task: push only to that branch, once at the end; the first line of the last message is SORU: or BİTTİ:. Then call devin_wait (one long call, no polling loops).

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": {
      "task": "<task>",
      "mode": "<mode>",
      "repo": "<repo>",
      "branch": "<branch>"
    },
    "name": "devin_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes"cloud" (devin acp --cloud) or "local" (in-process; local runs are sequential)
repoYesRepository: owner/name, a git URL, or (local mode) a checkout path
taskYesWhat Devin should do
modelNoModel for the new session; defaults to the session default
branchYesBranch Devin works on and pushes to; must start with "devin/"
schemaNoOptional JSON Schema the last message must contain a matching JSON object for
acu_capNoACU cap (default 10)
pre_commandNoCommand Devin runs first ("first run this"); the MCP does not set up the environment

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare openWorldHint=true and destructiveHint=false; the description adds real behavioral context on top: the call is fire-and-forget, the branch must start with "devin/", rules are appended to the task (push only to that branch, once at the end), and the last message must begin with SORU: or BİTTİ:. That tells the agent about side effects and output conventions it could not infer from structured fields.

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 sentences, front-loaded with action and return shape, then constraints, with no filler. Minor deduction because the SORU:/BİTTİ: protocol tokens are unexplained and read as jargon a fresh agent may not parse.

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 an 8-parameter creation tool with no output schema, the description covers what comes back, the async contract, the branch precondition, and the mandated follow-up call. Gaps remain on how the optional schema/acu_cap/pre_command interplay with the last-message protocol and on failure behavior.

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 100%, so all eight parameters are already documented, including the enum for mode and the devin/ branch prefix. The description restates the branch prefix rule and lists return fields but adds no new syntax or format detail beyond the schema, so the baseline of 3 applies.

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 ("Starts a Devin session on a task") plus its non-blocking nature ("returns at once with id, URL, model, branch and push permission"), and explicitly differentiates itself from the sibling by naming devin_wait as the follow-up call.

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?

Gives clear sequencing guidance — start here, then call devin_wait with one long call and no polling loops — which is exactly the alternative an agent would otherwise pick wrong. It stops short of covering when to use devin_message, devin_status, or devin_stop instead, so it is strong rather than exhaustive.

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