Skip to main content
Glama

Ask Cursor (new chat)

cursor_ask

Send questions or coding tasks to the Cursor CLI agent in a new chat, using your existing login and optional workspace for context-aware answers.

Instructions

Ask the Cursor CLI (cursor-agent -p) a question or task in a NEW chat.

Uses your existing Cursor login (OS credential store, or a CURSOR_API_KEY env var — see cursor_status). Returns the agent's final message, read straight from stdout (no scraping). Cursor is a capable agentic coder with a wide model menu (GPT / Claude / Grok / Composer); point workspace at a project dir for context-aware answers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoOptional model override (`--model`, e.g. "auto", "gpt-5.2", "claude-opus-4-8-high", "composer-2.5"); validated against `cursor-agent models` and rejected on a typo. cursor bakes the effort and speed axes into the id (…-low/-high/-xhigh/-max, each with a -fast twin) and also accepts a bracket form on the family base, e.g. "claude-opus-4-8[context=1m,effort=high]". Omit to use your Cursor default.
watchNoIf true, open a live "watch" view streaming cursor's steps from its `--output-format stream-json` event stream. Same final text is returned. Best-effort. Default false.
promptYesQuestion or instruction for Cursor.
sandboxNoPermission policy (maps to cursor's mode/force flags): "read-only" (default — `--mode ask`: agent-enforced, no file/shell edits; NOT an OS sandbox, so unlike codex it is not a hard boundary), "workspace-write" (may edit files, rooted at the workspace), or "danger-full-access" (OS sandbox off — avoid).read-only
timeout_sNoMax seconds to wait for cursor to complete. Default 180.
workspaceNoWorking root for the chat (`--workspace`). Defaults to the server cwd.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations indicate mutation and external access, and the description adds context: it uses Cursor CLI, returns stdout, explains sandbox modes (including agent-enforced but not hard boundary), and mentions streaming via watch. This provides valuable behavioral insight beyond the structured annotations.

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?

The description is two concise sentences in the first paragraph, front-loading the core purpose. Every sentence adds necessary context without redundancy. It is well-structured 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 (6 parameters, output schema exists), the description covers purpose, authentication, return behavior, and basic use. It lacks explicit error handling or timeout details, but the schema covers most parameters. Overall, it provides sufficient context for an AI agent to use the tool effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with detailed parameter descriptions. The description adds value by noting that workspace enables context-aware answers and linking to cursor_status for auth, supplementing the schema. It does not repeat schema information unnecessarily.

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 states 'Ask the Cursor CLI a question or task in a NEW chat', specifying the verb and resource. It distinguishes from sibling 'cursor_continue' by emphasizing 'new chat' and mentions return value and authentication, 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 new conversations but does not explicitly state when not to use it or provide alternatives. It references 'cursor_status' for auth but lacks direct comparison with 'cursor_continue'. The guidance is implied but not explicit, warranting a mid-range score.

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/SinanTufekci/agent-intern'

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