Skip to main content
Glama

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

tasks_get
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": "tasks_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNo
task_idYes
include_resultNo
include_historyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, closed-world, so the safety bar is covered. The description adds real behavioral value beyond them: the status lifecycle (submitted → completed/rejected), what each terminal status carries (result.media_buy_id and packages, or error.message), and that sandbox orders finish immediately.

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?

Three tight sentences with the tool identity and task_id provenance front-loaded, then the status semantics. Dense but every sentence carries information; no filler.

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?

With no output schema, the description usefully sketches return shapes (result.media_buy_id, packages, error.message) and status meanings. However, it leaves the optional include_result/include_history switches and the entire account object undocumented, which matters for a nested-object tool.

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% across 4 parameters including a nested account object, so the description carries the burden. It only covers task_id provenance; include_result, include_history, and the account fields (brand domain, operator, sandbox) are unexplained in both schema and description.

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) scoped to a task_id, and names the upstream tools that produce that id (buy_products, create_media_buy). It does not distinguish itself from the sibling get_task_status, so the agent may still hesitate between the two.

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?

Explains when a task_id exists at all: new orders answer immediately with media_buy_id, so polling is only needed for the deferred path, and sandbox orders complete at once. No explicit exclusion against the get_task_status sibling, but the usage context is clear.

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