Skip to main content
Glama

delegate

Destructive

Sends a prompt to Cursor Agent, waits until the turn is terminal, then returns the reply and session ID to resume the same session for follow-up work.

Instructions

Send a prompt to Cursor Agent and wait until that Cursor turn is terminal, including tool work and any sub-agent follow-up Cursor performs before it stops. Returns Cursor's reply and the sessionId to reuse. A second call for a session that is still running is rejected. You decide CONTINUE, COMPLETE, or BLOCKED. Do not shell out to the agent binary.

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>",
      "workspace": "<workspace>"
    },
    "name": "delegate"
  }
}

Input Schema

NameRequiredDescriptionDefault
fastNoRequest Cursor's fast tier. Leave false unless the user asks. Higher cost.
modeNoagent implements. plan asks Cursor to produce a plan and stop. ask is for a read-oriented question. The mode is an instruction to Cursor.agent
modelNoOptional Cursor model id. Omit to keep Cursor's current default.
effortNoExact effort value advertised by the selected model. Invalid values fail before the prompt and name the accepted set.
promptYesNatural prompt for Cursor. Sent as written. Point at files and project documents instead of pasting them.
contextNoContext-window option when the model advertises one, such as 272k or 1m. Omit unless the user asks.
sessionIdNoResume this Cursor session. Omit to start one. Use the sessionId from the previous result for follow-up work.
workspaceYesExisting project directory Cursor will work in. Must not be the home directory or filesystem root.
contextFilesNoFiles to attach. Text becomes resource links. Images (png, jpg, gif, webp, under 5MB) are sent inline when Cursor accepts them. Missing files are warnings, not failures.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and non-idempotence; the description adds genuine value with blocking-until-terminal semantics, the rejection of a second call against a still-running session, and the returned sessionId. It does not disclose timeouts, failure behavior of the underlying agent turn, or cost, which is material for an open-world destructive call.

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 what the tool does and when it returns, followed by the session reuse rule and the anti-pattern warning. Mostly tight, though 'You decide CONTINUE, COMPLETE, or BLOCKED' is an unexplained fragment that does not obviously earn its place.

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?

With nine parameters, no output schema, and open-world/destructive annotations, the description covers the return payload (reply plus sessionId), the blocking and rejection behavior, and session continuation. It stops short of covering timeouts, concurrency limits beyond the second-call rejection, and failure modes, which an agent would want for a long-running destructive operation.

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 coverage is 100%, so all nine parameters including mode, effort, context and contextFiles are already documented in the schema. The description adds only the sessionId reuse convention, which is also in the schema; the 'CONTINUE, COMPLETE, or BLOCKED' line is not clearly tied to any parameter and reads as an ambiguous afterthought.

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 ('Send a prompt to Cursor Agent') plus the key blocking semantic ('wait until that Cursor turn is terminal'). The concurrent-call rejection clause implicitly separates it from the 'cancel' sibling without naming it, so an agent can route correctly, though explicit sibling mention is absent.

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?

'Do not shell out to the agent binary' gives a clear anti-pattern, and 'Use the sessionId from the previous result for follow-up work' tells the agent how to continue versus start fresh. There is no explicit guidance on when to prefer 'cancel' or 'doctor' instead, which keeps it below 5.

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

Deploy Server

Other Tools