Skip to main content
Glama

Status of an Agentry order task (AdCP tasks/get)

get_task_status
Read-only

AdCP tasks/get for a task_id from an earlier buy_products or create_media_buy answer (new orders answer at once with media_buy_id). status is "submitted" while a human reviews the order, then "completed" with result.media_buy_id and packages, or "rejected" with error.message. Sandbox orders complete at once.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "task_id": "<task_id>"
    },
    "name": "get_task_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNo
task_idYes
include_resultNo
include_historyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuine value beyond that with the status lifecycle (submitted → completed/rejected), the result fields surfaced at completion, and the sandbox fast-path. It stops short of explaining what include_result/include_history change about the response.

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

Conciseness4/5

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

Two dense sentences, front-loaded with the identity and provenance of task_id, then the outcome states. Every clause carries information; the only cost is that the status enumeration reads as a compressed run-on.

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?

There is no output schema, so describing the completed and rejected result shapes is necessary and done reasonably well. But the optional include_result/include_history switches and the nested account object are left unexplained, so an agent cannot tell what those parameters do or when to set them.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden, yet only task_id provenance is explained. The account object (brand, operator, account_id, sandbox), include_result, and include_history are all undocumented in both schema and description, which is a real gap for a 4-parameter tool with nesting.

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?

States a specific verb and resource ('AdCP tasks/get for a task_id') and anchors it to the sibling operations that produce the task_id (buy_products, create_media_buy). It distinguishes itself from the instant-answer path ('new orders answer at once with media_buy_id'), but never addresses the sibling literally named tasks_get, leaving an obvious naming ambiguity unresolved.

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 clear when-to-use context: poll a task_id returned from an earlier buy_products or create_media_buy call, and implicitly tells the agent not to poll when the answer came back synchronously with a media_buy_id. No explicit exclusions or error-path guidance beyond the 'rejected' status.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources