Skip to main content
Glama

Reconcile an outbound task

reconcile_task
DestructiveIdempotent

Resolve a task's recorded status against what actually happened after a worker interruption or an uncertain result from the calling provider - safe to call any time, including repeatedly, and it never dials anything itself. It settles a task stopped by one of four causes: a pause in the middle of a dial (dispatch_in_flight), an expired claim (dispatch_claim_expired), a call whose price was not known yet (billing_unknown) or an uncertain dial (dial:*) whose call was found. Once no call is waiting to be settled, such a task becomes paused while any contact still waits for an attempt (even if others are in review), needs_attention when only contacts in review remain, and completed when nothing remains. Separately, it releases a dial intent whose worker died before the call was placed (no call record and no recorded attempt exist) once its work claim and a 5-minute margin have both expired, so at the earliest 15 minutes after the dial began: the contact goes back to waiting (or becomes completed after a verified callback) and its budget reservation is returned. Nothing else changes: a running task keeps running, and a task stopped for another reason (variables_limit, a failed invoice or calendar check, an uncertain dial whose call cannot be found, or contacts in review that stopped it earlier) stays in needs_attention until those contacts are decided with resolve_task_item. revision is optional; when given and it no longer matches the task's current revision, this fails with revision_conflict. Same data as POST /v1/tasks/{id}/reconcile (response schema in /openapi.json).

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": {
      "id": "<id>"
    },
    "name": "reconcile_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the task to reconcile, from list_tasks or get_task. Looks like task_9f3a2b7c4d1e.
revisionNoRevision of the task as returned by get_task. When given and it no longer matches, this fails with revision_conflict; omit to reconcile regardless of revision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses the four settled causes, resulting task states (paused, needs_attention, completed), the separate stale dial-intent release rule with its 5-minute margin and 15-minute earliest timing, budget reservation return, and the fact that it never dials anything itself. It also explains revision_conflict behavior and what does not change, which is unusually rich behavioral context.

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?

The description is front-loaded with purpose and safety, and most of its detail earns its place given the mutation's complexity. It is still a long dense paragraph, and the revision-conflict explanation plus the endpoint mapping duplicate information that could be scannable or schema-owned.

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 complex state-changing tool with no output schema, the description covers outcomes, edge cases, timing, side effects, and what remains unchanged thoroughly. The pointer to the OpenAPI response schema is sufficient given the absence of a structured output schema.

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 baseline is 3 even without additional parameter guidance. The description restates the optional revision conflict behavior already documented in the schema and does not add new syntax or meaning for id beyond what the schema provides.

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 states a specific verb and resource: resolving a task's recorded status against what actually happened after a worker interruption or uncertain provider result. It also distinguishes scope from sibling behavior by naming resolve_task_item for contacts left in review, so an agent can tell what this tool is for without opening the schema.

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?

It gives explicit trigger conditions: a worker interruption, an uncertain result, dispatch_in_flight, dispatch_claim_expired, billing_unknown, or a found dial:*. It also says the tool is safe to call repeatedly and routes contacts-in-review decisions to resolve_task_item, which is clear when-to-use and alternative guidance.

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.