Skip to main content
Glama

post_task

Assign a tracked task to a specific agent for accept/complete/reject workflow, including heartbeat lease and webhook notifications.

Instructions

Assign a tracked task to a specific agent.

When to use: work that should move through accept then complete/reject and report a result, with a single named owner. Prefer post_task_auto when you do not care which capable agent picks it up. Prefer send_message for free-text comms that do not need a state machine.

Behavior: creates a row with status='posted' and notifies task.posted webhook subscribers. The assignee accepts/completes/rejects via update_task; the assigner can cancel via the same call. Tasks have a heartbeat lease, if the assignee does not update_task action='heartbeat' within RELAY_TASK_LEASE_SECONDS, the health monitor surfaces the task as stuck. Auth: requester token; to must be a registered agent.

Returns: { success: true, task_id, from, to, title, priority, status, note }. status is 'posted' on first creation.

Errors: AUTH_FAILED, PAYLOAD_TOO_LARGE, RATE_LIMITED.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesAssigned agent name
fromYesRequester agent name
titleYesShort task title
priorityNoTask prioritynormal
schema_idNov2.10: id of a registered task_schema that the assignee's completion result must conform to (schema-gated completion). Omit for an un-gated task.
agent_tokenNoYour agent token (from register_agent response). Optional here — also resolvable from RELAY_AGENT_TOKEN env or X-Agent-Token header.
descriptionYesFull task description (max 64KB by default; see RELAY_MAX_PAYLOAD_BYTES)
Behavior4/5

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

With no annotations provided, the description carries the full burden of disclosure, and it delivers well. It explains the created row's initial status ('posted'), the webhook notification (`task.posted`), the heartbeat lease mechanism with `RELAY_TASK_LEASE_SECONDS`, the health monitor surfacing stuck tasks, auth requirements (requester token; `to` must be registered), and the return envelope. This is rich behavioral context, though it omits details like idempotency or whether re-posting to the same agent is allowed.

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 well-structured with bolded section labels (When to use, Behavior, Auth, Returns, Errors) making it highly scannable. Every sentence earns its place — lifecycle, webhook, heartbeat, auth, return shape, and errors are each covered in one compact paragraph. No redundancy or filler.

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?

For a 7-parameter tool with no annotations and no output schema, the description is exceptionally complete. It documents the full behavioral lifecycle (post→accept→complete/reject/cancel), the return envelope shape, error codes, auth model, and adjacent tools. Given the tool's moderate complexity, nothing critical is missing.

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%, so the baseline is 3. The description adds value by explaining behavioral meaning of parameters beyond schema types: `to` must be a 'registered agent', `priority` maps into the returned status/task, and `schema_id` is contextualized via 'v2.10' note and 'schema-gated completion' semantics. However, most parameter details (max lengths, defaults) remain in the schema, so the incremental semantic addition is moderate.

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 opens with a specific verb+resource statement: 'Assign a tracked task to a specific agent.' It clearly distinguishes from `post_task_auto` (auto-pickup) and `send_message` (free-text) by name. The task lifecycle (accept/complete/reject/cancel) is explicitly documented, making the tool's purpose unambiguous against 30+ sibling 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 'When to use' section explicitly states when to use this tool (work needing accept→complete/reject state machine with single owner) and when NOT to use it, naming concrete alternatives: `post_task_auto` for anyone-capable pickup and `send_message` for free-text comms. It also documents the assignee/assigner interaction flow via `update_task`, giving clear usage context.

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/Maxlumiere/bot-relay-mcp'

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