Skip to main content
Glama

Create an outbound task

create_task

Create an outbound call task - a bulk campaign that dials a list of recipients with one of this account's voice agents. Always created in the draft state; nothing is dialled until start_task runs it, so this alone never costs anything. To start the task later, the agent must have provider engine - pass create_agent useForOutboundTasks: true, or when omitting it verify the returned provider before continuing. An ElevenLabs agent is accepted here but start_task refuses it with engine_required. budgetHal must cover at least one call at maxDurationSecs or this fails with budget_too_low; without retryPolicy, maxAttempts is 1-3 and defaults to one. Opt-in lorela_enterprise allows 1-4 and defaults to four at creation. expiresAt is an optional campaign deadline checked before every dial, including the first. Opt-in retry schedule: second at least 8 minutes after the first real attempt starts, within 08:00-22:00 Europe/Prague; third in the next other 08:00-09:00 or 17:00-19:00 window; fourth in the opposite window the following calendar day. Optional retryWindows wide widens the third and fourth attempt windows to morning 08:00-13:00 and afternoon 13:00-20:00 (default peak = the narrow windows; accepted only with the policy). Respects callingWindow and its weekdays, expiry, DNC, budget and limits. Tasks cannot be scheduled from a number in Australia and New Zealand, where the recipient's local time is not verified; creating or starting such a task fails with destination_not_allowed. Only no_answer, missed, busy or completed voicemail without human contact retry; human contact, refusal and engine failure stop retries, ambiguous results need review. Hard cap of four attempts and of the retry horizon: optional retryMaxAgeDays, a whole number 1-30 (default 5) that ends N × 24 hours from the first counted attempt of each recipient, accepted only with the policy. Manual resolve retry after any actual attempt is rejected. A provably undialed expired claim may be restored before its first attempt; the resolver description gives the guards. Omit to preserve the existing retry behavior. Up to 1000 recipients are accepted, and the complete stored task JSON is capped at 2 MB. Same data as POST /v1/tasks (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": {
      "name": "<name>",
      "agentId": "<agentId>",
      "taskType": "<taskType>",
      "source": "<source>",
      "recipients": "<recipients>",
      "budgetHal": "<budgetHal>"
    },
    "name": "create_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesHuman-readable name for this task, shown in the portal and in list_tasks, 1 to 120 characters.
sourceYesWhere the recipient list came from: manual (typed or pasted by a human) or integration (generated from a connected calendar or accounting system, requiring externalRefs on every recipient).
agentIdYesId of the agent that dials every recipient, from list_agents. Looks like ag_9f3a2b7c4d1e.
purposeNoImmutable purpose, standard by default. coupon_reminder requires manual/custom, explicit maxAttempts 1 and expiresAt; a configured trusted server preflight must approve each reminder before dialing. User variables cannot set reminder coupon metadata or greeting.
taskTypeYesWhat this task is for: invoice, appointment, or custom. With source manual it only labels the task; with source integration it picks the required externalRefs field per recipient - invoice needs externalRefs.invoice, appointment needs externalRefs.calendar, custom accepts either.
budgetHalYesTotal budget for this task in hellers (1/100 CZK). Must cover the cost of at least one maximum-duration attempt, or creation fails with budget_too_low.
expiresAtNoOptional campaign deadline as positive safe-integer Unix milliseconds. At or after it, no new call may start, including the first; no attempt is consumed. A call already in progress finishes normally.
recipientsYesRecipients to call, 1 to 1000 entries; each needs a phone number and may carry variables and an external reference. The complete stored task JSON is also capped at 2 MB.
maxAttemptsNoMaximum automatic dials per recipient including the first: 1-3 without retryPolicy (default 1), 1-4 with lorela_enterprise (default 4). A value of 4 requires that policy.
retryPolicyNoEnable lorela_enterprise: up to four attempts within the retry horizon (retryMaxAgeDays, default 5) of the first counted attempt. Human contact stops retries; manual retry after an actual attempt is rejected. Schedule: see the tool description. Omit to keep existing behavior.
externalRefsNoTask-level link to the invoice or calendar event this whole task is about, applied to every recipient that does not set its own externalRefs.
retryWindowsNoWindows of the 3rd and 4th attempt of lorela_enterprise: peak (default, 08:00-09:00 and 17:00-19:00) or wide (08:00-13:00 and 13:00-20:00) in the callingWindow timezone. Needs the policy in this request. Omit for peak.
callingWindowNoCalling window that limits when this task is allowed to dial. Defaults to weekdays 09:00 to 18:00 Europe/Prague when omitted.
maxDurationSecsNoMaximum call duration per attempt in seconds, 30 to 300 - used to estimate and reserve cost. Defaults to 120 seconds when omitted.
retryMaxAgeDaysNoRetry horizon of lorela_enterprise: a whole number of days 1-30. It ends N × 24 hours from the first counted attempt of each recipient, then no further automatic attempt starts. Defaults to 5 when omitted. Requires retryPolicy lorela_enterprise in the same call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only flag readOnlyHint=false and destructiveHint=false; the description adds substantial behavior: always created in draft, never costs anything until started, budget_too_low and engine_required failures, AU/NZ destination_not_allowed, DNC/calling-window enforcement, retry stop conditions, 1000-recipient and 2 MB caps. This is far beyond what the annotations convey.

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

Conciseness3/5

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

Front-loaded well with the core create/draft/no-cost facts, but the body is a dense block of run-on sentences piling retry-schedule detail, and it retains the update-style 'Omit to preserve the existing retry behavior' line that reads oddly for a create tool. Informationally rich but heavier than needed.

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 15-parameter tool with nested objects and no output schema, the description covers draft state, cost, retry semantics, calling windows, destination restrictions and caps comprehensively. An agent has what it needs to call it correctly and understand failure modes.

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 real meaning beyond the schema: the detailed lorela_enterprise retry schedule, retryMaxAgeDays horizon, and how budgetHal must cover one max-duration call. It meaningfully augments the retry parameters the schema only summarizes.

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?

States a specific verb and resource: 'Create an outbound call task - a bulk campaign that dials a list of recipients with one of this account's voice agents.' It also distinguishes itself from start_task by noting 'nothing is dialled until start_task runs it,' so an agent can tell this apart from the sibling without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clearly states the create-then-start workflow and the prerequisite that the agent 'must have provider engine - pass create_agent useForOutboundTasks: true.' It names start_task and create_agent as the relevant alternatives. It lacks an explicit when-not-to-create exclusion, but the operational context is clear.

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.