Skip to main content
Glama

delegate

Destructive

Send a prompt to Cursor Agent and wait for completion, returning the reply and session ID to continue the same session.

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.

Input Schema

TableJSON 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.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructive/openWorld/non-idempotent, so the safety profile is covered. The description adds substantial non-obvious behavior: the call blocks until the turn is terminal, it encompasses tool work and sub-agent follow-up, concurrent calls on a running session are rejected, and the reply plus sessionId come back. It does not spell out that the agent may modify files, but the blocking and concurrency semantics are genuinely informative.

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

Conciseness5/5

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

Five tight sentences with zero filler, and the core blocking behavior plus return contract are front-loaded before the caveats. Every sentence carries a distinct, useful fact.

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 no output schema, the description correctly discloses the return shape (Cursor's reply and the reusable sessionId). Combined with full schema coverage, an agent has what it needs to invoke the tool. The one loose end is the unexplained 'You decide CONTINUE, COMPLETE, or BLOCKED', which is opaque without further context.

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% across all 9 parameters, so the schema already carries defaults, enums, and constraints. The description adds little parameter-level detail beyond noting the sessionId is meant for reuse, which the schema also states. Baseline 3 is appropriate.

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?

The description names a specific action (send a prompt to Cursor Agent) and a specific resource/session model, and states the blocking contract: it waits until the Cursor turn is terminal, including tool work and sub-agent follow-up. It also distinguishes itself from the wrong approach ('Do not shell out to the agent binary'), so an agent can tell this apart from the sibling cancel/doctor tools without opening a schema.

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 real usage context: omit sessionId to start a session, reuse the returned sessionId for follow-up, and a second call against a still-running session is rejected. It also steers away from shelling out to the agent binary. It stops short of explicitly comparing itself to the cancel and doctor siblings, so it is strong but not exhaustive.

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