Skip to main content
Glama

cursor_request_async

Destructive

Initiates an asynchronous Cursor Agent CLI job that runs in the background, enabling later retrieval of status and results.

Instructions

Start a Cursor Agent CLI request as a durable background job. Poll with llm_job_status, collect with llm_job_result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoCursor execution mode: plan (read-only planning) or ask (Q&A/read-only)
forceNoEmit --force (Cursor yolo mode; auto-allows commands unless explicitly denied)
modelNoModel name or alias passed via --model
trustNoTrust the workspace in headless mode
addDirNoAdditional workspace root directories (--add-dir, repeatable)
promptYesPrompt text for Cursor Agent CLI
sandboxNoCursor sandbox mode override (--sandbox enabled|disabled)
sessionIdNoCursor chat/session ID to resume (emits --resume <id>). Note: the gw-* id minted for a brand-new gateway session is not resumable via sessionId; continue with resumeLatest:true.
workspaceNoWorkspace directory or saved workspace name (--workspace). Remote HTTP/OAuth callers must pass a registered workspace alias; local stdio callers may pass local Cursor workspace paths.
autoReviewNoEmit --auto-review (Cursor Smart Auto classifier for tool calls)
forceRefreshNoBypass dedup and force a fresh CLI run even if a recent identical request exists
outputFormatNoCursor --output-format for --print modetext
resumeLatestNoResume the latest Cursor chat (--continue). Note: the gw-* id minted for a brand-new gateway session is not resumable via sessionId; continue with resumeLatest:true.
correlationIdNoRequest trace ID (auto if omitted)
idleTimeoutMsNoIdle timeout in ms (min 30s, max 1h, omit=CLI default)
approvalPolicyNoApproval policy when approvalStrategy is mcp_managed: strict|balanced|permissive (default balanced). Ignored under legacy strategy.
optimizePromptNoOptimize prompt before execution
approvalStrategyNoApproval strategy: legacy (default) lets Cursor's own flags decide; mcp_managed routes high-impact Cursor controls (force, trust, sandbox disabled) through the gateway approval gate.legacy
compressResponseNoCompress the response display text when collected via llm_job_result (native compressor; default: [compression].enabled).
createNewSessionNoForce a new session
Behavior4/5

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

Annotations already provide readOnlyHint=false and destructiveHint=true, so the safety profile is clear. The description adds the async/durable behavior and polling pattern, which is valuable context beyond what annotations convey. No contradictions are present.

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?

Two concise sentences: the first states the action, the second tells how to poll and collect. No extraneous information; it is front-loaded and efficient.

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?

Given the complexity (20 params, async, destructive), the description adequately covers starting the job and retrieving results. However, it does not mention failure modes, cancellation, or result format. The presence of sibling tools like llm_job_cancel partially mitigates this, but a bit more context would improve completeness.

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% and all 20 parameters have detailed descriptions in the schema. The tool description adds no additional parameter semantics beyond what's already in the schema, so it meets the baseline but does not exceed it.

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 clearly identifies the verb 'Start' and the resource 'Cursor Agent CLI request' as a durable background job, distinguishing it from synchronous alternatives. It also tells how to retrieve results via llm_job_status and llm_job_result, making the purpose unambiguous.

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?

The description implies usage for async background requests by stating the polling pattern, but it does not explicitly say when to use this tool versus the synchronous cursor_request sibling. No when-not-to-use or alternative recommendations are given, leaving the agent to infer context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/verivus-oss/llm-cli-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server