Skip to main content
Glama

orchestrator_create_task

Idempotent

Creates tenant-isolated A2A tasks in submitted state with idempotency-key deduplication, DLP-scrubbed metadata, and optimistic locking to prevent duplicate or cross-tenant work.

Instructions

Create a tenant-isolated (SPEC_CLASS_13 — rejects empty or wildcard tenant_id) A2A v1.0.1 task in TASK_STATE_SUBMITTED with context_id, (tenant_id, idempotency_key) deduplication (CLAIMED_NEW vs DEDUPED_EXISTING), DLP-scrubbed metadata, and initial optimistic lock version = 1.

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": {
      "tenant_id": "<tenant_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "orchestrator_create_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOptional human-readable task summary (DLP-scrubbed).
task_idNoOptional explicit A2A `Task.id` (auto-generated if omitted).
agent_idNoOptional assigned A2A worker agent identifier.
metadataNoOptional structured A2A task metadata dictionary (DLP-scrubbed).
tenant_idYesMandatory tenant namespace (`SPEC_CLASS_13`); wildcards (`*`, `%`, `all`) are rejected.
context_idNoOptional A2A `contextId` grouping multi-turn conversations (auto-generated if omitted).
status_messageNoInitial status description (DLP-scrubbed).Task submitted
idempotency_keyYesCaller-supplied deduplication key (`<= 256` chars) guaranteeing idempotent task creation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the description is not the sole carrier of the safety profile. It nonetheless adds real behavior beyond them: tenant_id rejects empty/wildcard values, duplicates are resolved by (tenant_id, idempotency_key) yielding CLAIMED_NEW vs DEDUPED_EXISTING, metadata is DLP-scrubbed, and the new row starts at optimistic lock version = 1.

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?

It is a single front-loaded sentence with the verb and resource first and no filler. The density of parenthetical spec jargon (SPEC_CLASS_13, TASK_STATE_SUBMITTED, CLAIMED_NEW/DEDUPED_EXISTING) makes it harder to parse than an equivalent plain-language phrasing would be.

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?

With no output schema, the description partially compensates by naming the dedup outcome signals (CLAIMED_NEW vs DEDUPED_EXISTING). For an 8-parameter create tool it still omits what the response contains (e.g., the generated task_id) and any failure modes other than wildcard tenant rejection.

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, but the description adds meaning the schema does not: that tenant_id participates with idempotency_key in the deduplication tuple, and that context_id is the A2A conversation grouping key. It does not describe formats for metadata or task_id beyond what the schema states.

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 and resource: 'Create a tenant-isolated ... A2A v1.0.1 task in TASK_STATE_SUBMITTED'. It also pins the spec class, initial state, and dedup model, which makes it unambiguously distinct from siblings like orchestrator_transition_task or orchestrator_inspect_task_lineage without naming them.

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?

Usage is only implied: an agent can infer this is the entry point for new tasks versus transition_task for state moves. There is no explicit when-to-use/when-not-to-use statement, no mention of alternatives, and no stated prerequisites such as required tenant scoping coming from an auth context.

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