Skip to main content
Glama

Resolve a task item waiting for review

resolve_task_item
DestructiveIdempotent

With reason customer_purchased (after verifying a purchase) or unsubscribed (after the customer unsubscribed), plus operationId and evidenceRef, skip an inactive pending item in a draft or pending/failed item in a paused task. It never dials, charges or changes the do-not-call list. get_task returns the immutable resolution in items[].resolution (reason is customer_purchased or unsubscribed); replay the same operation after an uncertain response, and a different resolution, including a different reason, conflicts. Otherwise decide what to do with one task item in review. retry returns it to pending; any later call that is actually placed is billed and counted under the normal maxAttempts rules. skip prevents another call. With lorela_enterprise, manual retry is rejected with validation: only scheduled automatic attempts are allowed, within four attempts, the task's retry horizon (retryMaxAgeDays, N × 24 hours from the first counted attempt, default 5) and the campaign deadline. The sole exception restores claim_expired before the first real attempt: no active worker, dispatch intent, provider call, callback, unsettled reservation or charge; the claim must be expired and every historical non-counted attempt must prove rejection before dialing. It preserves attempts and limits and only returns the contact to pending in a paused task. Coupon reminders cannot be reopened. For billing_unknown, both actions preserve providerCallId and the reserved budget until reconcile_task learns the original call's price; retry waits for that settlement before another dial, and skip may still be charged for the original call. This resolution itself never dials or charges. Works only while the task is not running: a contact in review can appear while the task still dials the others, and resolve then fails with task_not_editable until the task is needs_attention or paused. Once no item is left in review, needs_attention may move to paused or completed, unless another task-level reason remains. A skipped billing_unknown item does not block a task with work left (it moves to paused and its reservation keeps counting); a retried one waits for the price. A call that was never dialed settles at 0 right away. For a contact with reviewReason dial:destination_auto_blocked, first call unblock_destination with the item's phone number, then retry; for dial:cannot_call_own_number, dial:cannot_call_volai_number, dial:invalid_number, dial:unsupported_country and dial:blocked_destination only skip helps. Fails with task_not_editable, item_not_resolvable or revision_conflict.

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>",
      "itemId": "<itemId>",
      "action": "<action>",
      "revision": "<revision>"
    },
    "name": "resolve_task_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the task, from list_tasks or get_task. Looks like task_9f3a2b7c4d1e.
actionYesretry returns the contact to pending for billed dialing; skip prevents another call. For billing_unknown both keep the original call until reconcile_task settles its price. With dial:destination_auto_blocked run unblock_destination first; for uncallable numbers only skip helps.
itemIdYesId of the task item (items[].id from get_task) whose status is review.
reasonNoWith action skip, operationId and evidenceRef: customer_purchased after a verified purchase, unsubscribed after the customer unsubscribed. Needs a paused task, or a draft with a pending item, and no unsettled calls; keeps history, costs and DNC. Does not resolve review items.
revisionYesRevision of the task as returned by get_task. The decision is rejected with revision_conflict when it changed since - reload with get_task.
evidenceRefNoOpaque reference to the purchase or the unsubscribe record, without customer details such as a phone number or e-mail; the caller must verify it before requesting this skip.
operationIdNoStable opaque id for this skip operation; reuse it after an uncertain response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, it discloses that the resolution never dials, charges, or touches the do-not-call list, that retry leads to billed calls under maxAttempts, that idempotent replay of the same operationId is safe while a differing resolution conflicts, and that reserved budget is held until reconcile_task settles billing_unknown. These are exactly the mutation-side effects and idempotency semantics the annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is a dense wall of run-on clauses with parenthetical asides, numeric defaults, and jargon (retry horizon, claim_expired, billing_unknown) packed into single sentences. The most important fact — this tool decides retry vs skip for one item in review — is not front-loaded, forcing the agent to parse several hundred words of edge cases before reaching it.

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?

For a destructive, state-machine-bound mutation with seven parameters and no output schema, the description covers preconditions, billing consequences, enterprise restrictions, and the three failure codes thoroughly. The gap is that it never indicates what the call itself returns, relying on the reader to infer that get_task is needed afterward.

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 earns extra credit by adding meaning to operationId (reuse after an uncertain response, differing resolution conflicts) and evidenceRef (caller must verify before requesting the skip) beyond the field text. Revision conflict behavior is also spelled out, though the reason/evidenceRef path relative to review items stays somewhat ambiguous against the schema note that it 'does not resolve review items.'

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 does state a specific verb and resource — retry or skip one task item in review — and names the sibling tools involved (get_task, reconcile_task, unblock_destination). However, the primary purpose is buried in the fourth sentence behind a long preamble about the reason/operationId/evidenceRef skip variant, so an agent must read far down before learning the main decision the tool makes.

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 routing rules: retry vs skip, retry blocked under lorela_enterprise with the narrow claim_expired exception, unblock_destination first for dial:destination_auto_blocked, and only skip for cannot_call_own_number/invalid_number/blocked_destination. It also states the task-state precondition (fails with task_not_editable while running) and the billing_unknown waiting behavior, leaving little to inference.

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.