Skip to main content
Glama

Get TraeCN Task

traecn_get_task
Read-onlyIdempotent

Retrieve the final result or full execution trace of a completed gateway task by its ID, useful for diagnosing outcomes after completion or reconnecting after a disconnect.

Instructions

Read one known gateway task by ID: status plus final result, or the full execution trace with detailLevel 'trace' for diagnosis. Call once when notified of completion or once later when resuming after a disconnect. Not a progress primitive — do not poll in a tight loop.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdYesStable task identifier returned by traecn_send_message.
detailLevelNoresult returns only the final answer (default); trace includes the full visible Trae execution process.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoStable machine-readable result or error code.
errorNoError identifier or diagnostic when the operation failed.
resultNoFinal agent answer payload: text, stable flag, elapsedMs; or code/error when unavailable.
statusNoTask status such as queued, executing, done, error, cancelled, awaiting_review, approval_required.
taskIdNoEchoed task identifier.
changedNoWhether visible TraeCN state changed.
elapsedNoMilliseconds elapsed since creation.
messageNoHuman-readable outcome summary.
successNoWhether the operation succeeded.
lastStepNoMost recent execution step summary (trace level).
metadataNoGateway bookkeeping metadata recorded with the task.
createdAtNoEpoch milliseconds when the task was created.
errorCodeNoStable code when the task itself failed.
retryableNoWhether retrying the same call can succeed later.
stepCountNoNumber of recorded execution steps.
nextActionNoSuggested next step after a failure.
completedAtNoEpoch milliseconds when the task completed.
detailLevelNoRequested detail level.
fromHistoryNoTrue when served from persisted history instead of the active queue.
detailWarningNoPresent when trace details could not be fully recovered.
historyStatusNoInternal history status when the task already left the active queue.
conversationIdNoStable TraeCN conversation identifier.
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the description doesn't need to repeat that. It adds the caution that this is 'not a progress primitive,' which prevents misuse. It also implies the trace level is for diagnosis, which is a behavioral context.

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 three sentences: the first states the core function, the second gives usage conditions, and the third adds a caution. It is front-loaded and every sentence earns its place without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the output schema exists and covers return values, the description covers the essential aspects: what it reads, when to call, and how to request more detail. It also provides the anti-pattern (polling) guidance, making it complete for an agent to use correctly.

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?

The schema already documents both parameters (taskId and detailLevel) with descriptions. The description adds that detailLevel 'trace' is 'for diagnosis' and clarifies that the default result returns 'status plus final result,' providing semantic context beyond the schema.

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 the verb 'Read' with a specific resource ('one known gateway task by ID') and explains the two modes (status+result vs. full trace). It distinguishes itself from siblings by implying it's a non-mutating read operation, which is unique among the listed tools.

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

Usage Guidelines5/5

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

The description explicitly instructs when to call: 'once when notified of completion or once later when resuming after a disconnect.' It also warns against polling: 'Not a progress primitive — do not poll in a tight loop.' This gives clear usage timing and alternatives.

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/Luckycat133/traecnclaw-mcp-skill'

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