Skip to main content
Glama

Update an outbound task

update_task
DestructiveIdempotent

Change an editable outbound task's rules - name, recipients, calling window, maxAttempts, retryPolicy, retryMaxAgeDays, retryWindows, expiresAt, maxDurationSecs, or budgetHal. It fails with task_not_editable while the task is running or completed, or in needs_attention without a way to recover, so pause a running task first. After the first dial attempt recipients can no longer be replaced (items_immutable) and a different retryPolicy or dispatchOrder is rejected; the other fields stay editable. expectedRevision (revision below) must equal the task's current revision or this fails with revision_conflict - reload with get_task first. Send only the fields you want to change; recipients, when sent, REPLACES the whole list, it does not merge. An audited skip (resolve_task_item with reason customer_purchased or unsubscribed) also makes recipients immutable, including in a draft. Enable the Lorela Enterprise retry schedule before any dispatch attempt. The same policy may be sent again later; omission preserves the current policy. Four attempts and the retry horizon (retryMaxAgeDays, default 5, ending N × 24 hours from the first counted attempt) are hard limits; manual resolve retry after an actual attempt is rejected. Unlike retryPolicy, retryMaxAgeDays may be changed in any editable state, also after attempts have started: raising it returns contacts that were skipped only for the horizon (reviewReason retry_age_expired) back to failed (waiting for their next attempt) with a new nextAttemptAt when the next slot of the schedule falls inside the new horizon and before expiresAt, lowering it reopens nothing. Only a PATCH that raises the horizon reopens contacts, so send retryMaxAgeDays together with a prolonged expiresAt in one call. Human contact and non-retryable results stop further calls. Does not bypass callingWindow, expiry, DNC, budget or call limits. The schedule is described by create_task and /en/docs/tasks. Same data as PATCH /v1/tasks/{id} (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>",
      "revision": "<revision>"
    },
    "name": "update_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the task to update, from list_tasks or get_task. Looks like task_9f3a2b7c4d1e.
nameNoNew name for the task, 1 to 120 characters. Omit to leave the current name unchanged.
revisionYesRevision of the task as returned by get_task. The update is rejected with revision_conflict when it changed since - reload with get_task.
budgetHalNoNew total budget in hellers (1/100 CZK); rejected when it would fall below what is already spent plus reserved. Omit to leave unchanged.
expiresAtNoCampaign deadline as positive safe-integer Unix milliseconds. At or after it, no new call may start, including the first. A call in progress finishes normally. Omit to leave unchanged.
recipientsNoReplacement recipient list, 1 to 1000 entries, sent in full. It replaces the existing list, and the complete task JSON must stay under 2 MB. Omit to leave recipients unchanged.
maxAttemptsNoNew maximum automatic dials including the first: 1-3 without retryPolicy, 1-4 with lorela_enterprise in this request or already stored. Omit to leave unchanged, even when enabling a policy.
retryPolicyNoEnable lorela_enterprise before any dispatch attempt. Resending the same policy is allowed later; omission preserves it. Its four-attempt limit and retry horizon apply; manual retry is rejected. See the tool description for the full schedule.
retryWindowsNoNew windows of the 3rd and 4th attempt of lorela_enterprise: peak (08:00-09:00 and 17:00-19:00) or wide (08:00-13:00 and 13:00-20:00). Needs the policy. A change recomputes waiting contacts. Omit to leave unchanged.
callingWindowNoReplacement calling window. Omit to leave the current window unchanged.
maxDurationSecsNoNew maximum call duration per attempt in seconds, 30 to 300. Omit to leave unchanged.
retryMaxAgeDaysNoNew retry horizon of lorela_enterprise: 1-30 days, ending N × 24 hours from the first counted attempt of each recipient; default 5. Needs the policy in this call or already stored. Raising it reopens contacts skipped only for the horizon; lowering it reopens nothing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, it discloses failure codes, post-first-attempt immutability, recipient replacement semantics, retry horizon reopening behavior, and the rule that calling windows, expiry, DNC, budget, and call limits are not bypassed. No statement contradicts the annotations.

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 core constraints, and nearly every sentence conveys useful behavioral information. However, it is a single long paragraph with some schema-adjacent repetition, which makes it dense and harder to scan than necessary.

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 12-parameter mutation with nested recipient objects and no output schema, it covers concurrency, state restrictions, retry policy behavior, immutability rules, and failure modes. It also points to the OpenAPI response schema, which is sufficient for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already has 100% parameter description coverage, but the description adds important cross-field meaning: revision must match the current task, recipients are replaced rather than merged, omission preserves fields, and retryMaxAgeDays has asymmetric reopening behavior. This is substantial semantic guidance beyond the schema.

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 starts with a specific verb and resource: changing an editable outbound task's rules, then lists the editable fields. It clearly distinguishes this mutation from create_task, get_task, pause_task, and resolve_task_item through its state and revision constraints.

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 explicitly says to pause a running task first, reload with get_task on revision_conflict, and send only the fields to change. It also names relevant alternative paths such as resolve_task_item, create_task, and the docs when those are more appropriate.

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.