Skip to main content
Glama

start_run

DestructiveIdempotent

Starts a persistent Cursor Agent run in a local workspace. Requires model and idempotency key; accepts task scope and target locations without embedding source code.

Instructions

在允许的本地工作区启动持久 Cursor Agent 运行。read-only 与 workspace-write 均只接受工作区、目标位置和任务范围,禁止嵌入源码正文;Cursor 自行读取所需文件。必须显式选择模型和幂等键。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYes任务或审查范围与验收要求;禁止传源码正文、代码块或补丁,由 Cursor 在获授权工作区自行读取。
modelYes
timeoutMsNoCursor 任务总预算(毫秒);普通任务省略即可使用 24 小时默认值,硬上限同为 24 小时。
workspaceYes
permissionNo
idempotencyKeyYes
targetLocationsNo工作区内的文件、目录或行号位置列表,仅传位置不传内容;省略表示由 Cursor 按任务范围在工作区内定位。
codexAllowedToolsNo仅由 Codex 主进程按任务范围决定的额外工具放行;高风险且超出用户既有授权时应先人工确认。
workspaceApprovalTokenNo
confirmedDangerousPermissionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.2
    • addedInput schema / properties / codexAllowedTools
      Added value: +{
      +  "description": "仅由 Codex 主进程按任务范围决定的额外工具放行;高风险且超出用户既有授权时应先人工确认。",
      +  "items": {
      +    "enum": [
      +      "delete",
      +      "task",
      +      "mcp",
      +      "generateImage"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 4,
      +  "type": "array"
      +}
    • addedInput schema / properties / targetLocations
      Added value: +{
      +  "description": "工作区内的文件、目录或行号位置列表,仅传位置不传内容;省略表示由 Cursor 按任务范围在工作区内定位。",
      +  "items": {
      +    "maxLength": 500,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 100,
      +  "type": "array"
      +}
    • addedInput schema / properties / task / description
      Added value: +"任务或审查范围与验收要求;禁止传源码正文、代码块或补丁,由 Cursor 在获授权工作区自行读取。"
    • addedInput schema / properties / task / maxLength
      Added value: +4000
    • addedInput schema / properties / timeoutMs / description
      Added value: +"Cursor 任务总预算(毫秒);普通任务省略即可使用 24 小时默认值,硬上限同为 24 小时。"
    • changedInput schema / properties / timeoutMs / maximum
      Previous value: -9007199254740991New value: +86400000
    • changedInput schema / properties / timeoutMs / minimum
      Previous value: --9007199254740991New value: +1000
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, readOnlyHint=false and openWorldHint=true, so the safety profile is covered. The description usefully adds the 'no embedded source code' scoping rule and the mandatory model/idempotency key, but says nothing about the danger-full-access path, the approval token, or what destruction actually entails.

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 compact sentences, the core action front-loaded and constraints following. No filler, though it could be organized slightly more clearly around the parameter groups.

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 destructive, open-world tool with 10 parameters, nested objects and no output schema, the description covers the required fields and a key constraint but omits the escalation/permission machinery (danger-full-access, approval token, dangerous-permission confirmation) an agent needs to call it safely.

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?

With only 40% schema description coverage, the description must compensate and does partially: it explains that workspace/targetLocations/task carry scope and that model and idempotencyKey are mandatory. But permission, timeoutMs, codexAllowedTools, workspaceApprovalToken and confirmedDangerousPermission get no coverage in either place.

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 states a specific verb and resource – '启动持久 Cursor Agent 运行' (start a persistent Cursor Agent run) – so the agent knows exactly what the tool does. However, it does not explicitly distinguish this from siblings such as open_run or wait_run, leaving the agent to infer the boundary.

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?

It gives prerequisites (must explicitly select model and idempotency key) and a constraint (read-only/workspace-write only accept workspace, target locations, task scope), which implies usage context. But there is no explicit when-to-use / when-not-to-use guidance versus the many sibling run tools.

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