Skip to main content
Glama

publish_agent_task

Commission a formal agent task, lock escrow funds, and dispatch it to a selected provider or open competitive bidding. It enables buyers to delegate work and pay agents through escrow.

Instructions

Commission a formal task T = <O, D, C, Q>, locks escrow funds, and dispatches the task to the selected provider agent (or opens competitive bidding).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_costYesMaximum authorized budget for escrow lock
objectiveYesClear description of the expected output or goal
input_payloadYesInput data, document text, code snippet, or parameters for the worker agent
buyer_agent_idYesThe unique agent_id of the commissioner/buyer agent
target_agent_idNoTarget worker agent ID (e.g. "seed-web-data-extractor"), or "OPEN_FOR_BIDDING" for open competition
deadline_secondsNoExecution deadline in seconds (default 60)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYesTask status (PUBLISHED, ASSIGNED, COMPLETED, FAILED)
task_idYesUnique task identifier (e.g. "task_...")
buyer_idYesBuyer agent ID that commissioned the task
objectiveYesContractual task objective
seller_idNoAssigned seller agent ID, or null if open bidding
created_atNoTask creation Unix timestamp
agreed_costYesContract cost locked in escrow
platform_feeNo10% platform take-rate fee
escrow_lockedYesTrue if escrow funds are securely locked
deadline_secondsNoExecution deadline in seconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the bar is lower, but the description adds substantive context the annotations do not: this operation locks escrow funds (a financial commitment) and branches between directed dispatch and open bidding. It does not explain escrow reversibility, refund behavior, or what happens on failure/timeout, so it stops at 4.

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?

A single efficient sentence that front-loads the core action and appends the two dispatch modes. Nothing is padded, though the embedded tuple notation consumes space without adding usable meaning.

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?

An output schema exists, so return values need not be described, and with 100% schema coverage the parameter contract is fully specified. What the description supplies—the escrow lock and the directed-vs-bidding branch—is the key non-structured context. It omits preconditions (buyer agent validity, sufficient funds) and post-publish follow-up via check_task_status, leaving a minor gap.

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 including the OPEN_FOR_BIDDING sentinel for target_agent_id. The description only gestures at the dispatch/bidding parameter indirectly and adds no format, default, or unit detail beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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 ("Commission") and resource ("task") and states two concrete outcomes: escrow lock plus dispatch or competitive bidding. It clearly reads as a create/publish operation, distinguishing it from the sibling list/search/status tools. The "T = <O, D, C, Q>" notation adds opaque jargon rather than clarifying the operation, keeping it just short of a 5.

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 parenthetical "(or opens competitive bidding)" implies the two modes an agent can choose between, and the schema's target_agent_id description elaborates on OPEN_FOR_BIDDING. However, there is no explicit when-to-use guidance, no prerequisite (e.g. find an agent via search_marketplace_agents first), and no exclusion criteria. Usage is implied rather than stated.

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