Skip to main content
Glama

cursor_execute

Execute a bounded coding task via cursor-agent CLI synchronously and get a JSON report with diff and status.

Instructions

Execute one bounded coding task through cursor-agent CLI (synchronous, blocks until done) and return a compact JSON report with diff/status context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdYesAbsolute working directory/repository root.
taskYesBounded coding task with goal, constraints, files, acceptance criteria, and verification command.
modelNoOptional cursor-agent model, e.g. gpt-5, sonnet-4-thinking, composer.
resumeNoResume a specific cursor-agent chat/session id instead of starting a new one.
timeoutMsNoInternal timeout; must be below the MCP client's own per-call timeout.
continueSessionNoContinue the last cursor-agent session; ignored when resume is set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses blocking/synchronous behavior and the shape of the return ('compact JSON report with diff/status context'), but says nothing about repository side effects, permissions, cost, or rate limits for a tool that runs an agent against a working directory.

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?

A single, front-loaded sentence with no waste. Blocking behavior and return shape are packed in efficiently without padding.

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 6-parameter execution/mutation tool with no annotations and no output schema, the description is adequate but thin. It names the return format but omits side-effect scope, filesystem impact, and resume/continue session semantics that an agent would need 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?

Schema description coverage is 100%, so the schema already documents all six parameters in detail. The description adds no syntax, format, or semantic detail beyond what the schema provides, so the baseline 3 applies.

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 names a specific verb ('Execute') and resource ('one bounded coding task through cursor-agent CLI'), so an agent knows exactly what capability this provides. It lacks a sibling to contrast against, but the purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the operation is synchronous and bounded, but gives no explicit when-to-use guidance, prerequisites, or conditions under which another approach (e.g. resume, continueSession) should be preferred. Usage is only implied, not directed.

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