Skip to main content
Glama

agent_run_start

Start a TeamShared Cloud Agent (router + FastMCP). Not a Cursor VM.

The worker mints a short-lived org tsk_ and runs the tool loop against in-process FastMCP. github= is an optional checkout. One active run per work item — a busy run returns status=busy. When the compact bootstrap profile is non-empty it is prepended (capped). When work_id has playbook_slug, that named playbook is prepended after the profile, its skills listed by name for the run to load with memory_skill_get. Unset slug or omitted work_id: no playbook inject. run.model is the model that will run: a model= the router would refuse is substituted (see model_substitution). agent_slug= binds the run to an agent record (#733); the result's agent.inherited says which settings came from it. When that record has a spend cap and the period's spend is at or over it, the start is refused (agent_budget_exceeded) and nothing is queued. From inside a run, tools cannot exceed that run's allowlist (tools_not_permitted when nothing overlaps), and the new run is nested under that run. A chain of nested starts stops at a fixed depth (nesting_depth_exceeded). With no calling run, parent_run_id must name a run in this org (parent_run_not_found, or bad_id).

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": {
      "prompt": "<prompt>"
    },
    "name": "agent_run_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoNoOptional workspace slug stored on the run
agentNoOverride agent attribution label
modelNoRouter model id (prefixed, e.g. openrouter/...); omit to use TEAMSHARED_AGENT_RUN_MODEL. An id the router would refuse (no routable prefix) is replaced by that default and the result carries model_substitution={requested, model, reason}.
toolsNoTool name/prefix patterns this run may bind (e.g. ['work_*','memory_recall']). Narrows the box allowlist; never widens it. Omit for the deployment default. From inside a run, the list cannot exceed that run's tools.
githubNoowner/repo checkout. Omit on a work item tagged code to use the org's only connected repo (github_repo_list); omit otherwise for a no-repo run. A slug the App does not serve is refused once an installation exists. A failed installation read refuses a named slug (github_binding_unavailable)
promptYesTask prompt for the TeamShared Cloud Agent
runtimeNoEvery value starts a TeamShared Cloud Agent on the in-box worker. Omit it, or pass cloud or teamshared. cursor, cursor_cloud, and cursor-cloud are refused with runtime_disabled: Cursor Cloud is retired.
work_idNoWork item UUID; reuses that item's TeamShared agent
agent_slugNoAgent record to run as (agent-<label> or <label>; see agent_list). The run inherits the record's model and tools: an explicit model= wins, an explicit tools= can only narrow the agent's. Unknown, paused or archived agents are refused. A record that has spent its budget_usd cap for the current period is refused with agent_budget_exceeded; a run already going is left to finish.
spawned_byNoParent Agent slug or label (dispatcher that spawned this worker)
parent_run_idNoParent agent run UUID when this is a nested child run. From inside a run, that run is the parent. With no calling run, the id must be a run in this org
auto_create_prNoHint to open a PR when a coding worker finishes. Defaults to true when the run checks out a repo, and stays unset when it does not
durable_memoryNoNested runs are ephemeral: no capture session or run memory of their own, the parent's work thread is the record. Set true for a specialist that must keep its own memory.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / runtime / description
      Previous value: -"Every value starts a TeamShared Cloud Agent on the in-box worker. Omit it, or pass cloud or teamshared. cursor, cursor_cloud, and cursor-cloud are refused with runtime_disabled while TEAMSHARED_CURSOR_CLOUD_RUNTIME_ENABLED is off; with the flag on those names still run on the same TeamShared worker."New value: +"Every value starts a TeamShared Cloud Agent on the in-box worker. Omit it, or pass cloud or teamshared. cursor, cursor_cloud, and cursor-cloud are refused with runtime_disabled: Cursor Cloud is retired."
  2. Changed2 schema fields changed
    • changedInput schema / properties / auto_create_pr / description
      Previous value: -"Hint to open a PR when a coding worker finishes (default true)"New value: +"Hint to open a PR when a coding worker finishes. Defaults to true when the run checks out a repo, and stays unset when it does not"
    • changedInput schema / properties / github / description
      Previous value: -"owner/repo — optional checkout for the worker. Omit for a no-repo run"New value: +"owner/repo checkout. Omit on a work item tagged code to use the org's only connected repo (github_repo_list); omit otherwise for a no-repo run. A slug the App does not serve is refused once an installation exists. A failed installation read refuses a named slug (github_binding_unavailable)"
  3. Changed2 schema fields changed
    • changedInput schema / properties / parent_run_id / description
      Previous value: -"Parent agent run UUID when this is a nested child run; defaults to the run that invoked this tool"New value: +"Parent agent run UUID when this is a nested child run. From inside a run, that run is the parent. With no calling run, the id must be a run in this org"
    • changedInput schema / properties / tools / description
      Previous value: -"Tool name/prefix patterns this run may bind (e.g. ['work_*','memory_recall']). Narrows the box allowlist; never widens it. Omit for the deployment default."New value: +"Tool name/prefix patterns this run may bind (e.g. ['work_*','memory_recall']). Narrows the box allowlist; never widens it. Omit for the deployment default. From inside a run, the list cannot exceed that run's tools."
  4. Changed1 schema field changed
    • addedInput schema / properties / runtime
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Every value starts a TeamShared Cloud Agent on the in-box worker. Omit it, or pass cloud or teamshared. cursor, cursor_cloud, and cursor-cloud are refused with runtime_disabled while TEAMSHARED_CURSOR_CLOUD_RUNTIME_ENABLED is off; with the flag on those names still run on the same TeamShared worker."
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / agent_slug / description
      Previous value: -"Agent record to run as (agent-<label> or <label>; see agent_list). The run inherits the record's model and tools: an explicit model= wins, an explicit tools= can only narrow the agent's. Unknown, paused or archived agents are refused."New value: +"Agent record to run as (agent-<label> or <label>; see agent_list). The run inherits the record's model and tools: an explicit model= wins, an explicit tools= can only narrow the agent's. Unknown, paused or archived agents are refused. A record that has spent its budget_usd cap for the current period is refused with agent_budget_exceeded; a run already going is left to finish."
  6. Changed1 schema field changed
    • addedInput schema / properties / agent_slug
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Agent record to run as (agent-<label> or <label>; see agent_list). The run inherits the record's model and tools: an explicit model= wins, an explicit tools= can only narrow the agent's. Unknown, paused or archived agents are refused."
      +}
  7. Changed1 schema field changed
    • addedInput schema / properties / durable_memory
      Added value: +{
      +  "default": false,
      +  "description": "Nested runs are ephemeral: no capture session or run memory of their own, the parent's work thread is the record. Set true for a specialist that must keep its own memory.",
      +  "type": "boolean"
      +}
  8. Changed1 schema field changed
    • addedInput schema / properties / parent_run_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Parent agent run UUID when this is a nested child run; defaults to the run that invoked this tool"
      +}
  9. Changed1 schema field changed
    • changedInput schema / properties / model / description
      Previous value: -"Router model id; omit to use TEAMSHARED_AGENT_RUN_MODEL"New value: +"Router model id (prefixed, e.g. openrouter/...); omit to use TEAMSHARED_AGENT_RUN_MODEL. An id the router would refuse (no routable prefix) is replaced by that default and the result carries model_substitution={requested, model, reason}."
  10. Changed1 schema field changed
    • addedInput schema / properties / tools
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Tool name/prefix patterns this run may bind (e.g. ['work_*','memory_recall']). Narrows the box allowlist; never widens it. Omit for the deployment default."
      +}
  11. Changed5 schema fields changed
    • changedInput schema / properties / auto_create_pr / description
      Previous value: -"Open a PR when the coding worker finishes (default true for workers)"New value: +"Hint to open a PR when a coding worker finishes (default true)"
    • changedInput schema / properties / github / description
      Previous value: -"owner/repo — spawns a repo worker. Omit for the no-repo dispatcher"New value: +"owner/repo — optional checkout for the worker. Omit for a no-repo run"
    • changedInput schema / properties / model / description
      Previous value: -"Cursor model id; omit to use the org default"New value: +"Router model id; omit to use TEAMSHARED_AGENT_RUN_MODEL"
    • changedInput schema / properties / prompt / description
      Previous value: -"Task prompt for the Cursor cloud agent"New value: +"Task prompt for the TeamShared Cloud Agent"
    • changedInput schema / properties / work_id / description
      Previous value: -"Work item UUID; reuses that item's Cursor agent"New value: +"Work item UUID; reuses that item's TeamShared agent"
  12. Added

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: busy-run refusal, model substitution, agent_budget_exceeded with nothing queued, allowlist narrowing (tools_not_permitted), nesting_depth_exceeded, and durable_memory ephemerality. These are exactly the behavioral traits an agent needs before invoking a mutating start.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and information-dense with little filler, but it is a wall of telegraphic fragments and run-on clauses that is hard to parse. Structure could be improved without losing content.

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 13-parameter mutating tool with an output schema (so return values needn't be explained), the description covers the major failure modes and inheritance rules. A few edge interactions remain implicit, but it is largely complete.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: how model substitution works, that tools can only narrow never widen, github checkout defaults, runtime refusal of cursor values, and agent inheritance precedence. This meaningfully exceeds the schema text.

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?

States a specific verb and resource ('Start a TeamShared Cloud Agent') and explicitly distinguishes it from a Cursor VM, which is a real sibling confusion risk. It does not name the closest siblings (agent_run_child, agent_run_followup) to route between them, keeping it below a 5.

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 concrete when-conditions: one active run per work item with status=busy, playbook injection only when work_id has playbook_slug, agent_slug binding, and refusal on budget. It describes nested-run behavior but never explicitly says when to prefer agent_run_child or agent_run_followup over this tool.

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.