delega
v1.19.1Delega MCP client. Public hosted access retired July 28, 2026; existing owner credentials only.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_tasks
List compact, paginated task summaries with total/has_more/next_offset. Default 25 tasks and 6000 characters; follow next_offset with identical filters for complete discovery. A page is not the whole queue. Workers see involved tasks; coordinators/admins see all account tasks. Act only on your assignments or unowned tasks you claim; coordinate on others through comments. Use get_task for details and get_task_context for selected current state, not a full backlog dump.
| Parameter | Type | Description |
|---|---|---|
assigned_to | string | Agent ID/external ID, or none for unassigned tasks |
claimed | boolean | Filter by claim status (true = currently claimed tasks) |
completed | boolean | Filter by completion status |
due | string | Filter by due date category |
label | string | Filter by label name |
limit | integer | Maximum tasks to fetch (default 25); response budget can show fewer |
max_chars | integer | Maximum response characters (default 6000); omitted data remains explicitly retrievable. |
offset | integer | Use next_offset from the previous page (default 0) |
project_id | string | number | Filter by project ID |
search | string | Search task title and description |
sort | string | |
state | string |
get_task
Get a task's details, ownership, handoff, links and subtasks as bounded JSON. Context is retrieved separately through get_task_context. Follow text cursors with the same task ID for large details; do not treat a fragment as complete.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | number | The task ID (use the ID from list_tasks, e.g. '3a7d...') |
cursor | string | Next text cursor returned by a large read. Repeat identical selectors; changed content invalidates the cursor. |
max_chars | integer | Maximum response characters (default 6000); omitted data remains explicitly retrievable. |
link_task
Attach a branch, commit, pull request, or URL link to a task. Use this when work in a repo, PR, or external artifact should travel with the task.
| Parameter | Type | Description |
|---|---|---|
kind * | string | Link kind: branch, commit, pr, or url |
ref * | string | Branch name, commit SHA, PR number, or URL reference |
task_id * | string | number | The task ID to link |
repo | string | Repository slug in owner/name form, when applicable |
url | string | Optional URL for the link |
list_task_links
List branch, commit, pull request, and URL links attached to a task.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | number | The task ID whose links to list |
create_task
Create a new task in Delega
| Parameter | Type | Description |
|---|---|---|
content * | string | Task title / content |
description | string | Detailed description |
due_date | string | Due date in YYYY-MM-DD format |
evidence_policy | string | Set 'required' to force structured completion evidence (commit/PR/CI/etc.) before this task can be completed |
labels | array | Labels to apply |
priority | integer | Priority: 1=normal, 2=medium, 3=high, 4=urgent |
project_id | string | number | Project ID to assign to |
list_recurrences
List recurring task templates. Recurrences spawn normal task instances on schedule; completing an instance does not delete the schedule.
create_recurring_task
Create a recurring task template. The hosted scheduler spawns normal task instances from this template and links them with source_recurrence_id.
| Parameter | Type | Description |
|---|---|---|
content * | string | Task title/content for spawned instances |
rule_type * | string | Recurrence rule type |
anchor_day | integer | Day of month for monthly/yearly rules |
anchor_month | integer | Month for yearly rules |
anchor_weekday | integer | Weekday for weekly rules, Sunday=0 |
assigned_to_agent_id | string | number | null | Optional assignee for spawned tasks |
description | string | Optional task description for spawned instances |
interval | integer | Rule interval, default 1 |
labels | array | Labels for spawned tasks |
next_due_at | string | Optional ISO timestamp for first due occurrence |
priority | integer | Priority 1-4 |
project_id | string | number | Optional project ID |
skip_if_open | boolean | Skip spawning and roll forward while a prior instance is open |
timezone | string | IANA timezone, e.g. America/Chicago |
update_recurrence
Update a recurring task template, including pausing/resuming with active=false/true.
| Parameter | Type | Description |
|---|---|---|
recurrence_id * | string | number | The recurrence ID to update |
active | boolean | Whether the recurrence is active |
anchor_day | Day of month for monthly/yearly rules | |
anchor_month | Month for yearly rules | |
anchor_weekday | Weekday for weekly rules, Sunday=0 | |
assigned_to_agent_id | string | number | null | Optional assignee, or null to clear |
content | string | Task title/content for future spawned instances |
description | string | null | Optional task description |
interval | integer | Rule interval |
labels | array | Labels for spawned tasks |
next_due_at | string | null | ISO timestamp for next due occurrence |
priority | integer | Priority 1-4 |
project_id | string | number | null | Optional project ID, or null to clear |
rule_type | string | Recurrence rule type |
skip_if_open | boolean | Skip spawning while a prior instance is open |
timezone | string | IANA timezone |
delete_recurrence
Delete a recurring task template. Existing spawned task instances remain as normal tasks.
| Parameter | Type | Description |
|---|---|---|
recurrence_id * | string | number | The recurrence ID to delete |
update_task
Update an existing task's fields
| Parameter | Type | Description |
|---|---|---|
task_id * | string | number | The task ID to update |
assigned_to_agent_id | string | number | null | Assign to agent ID, or null to unassign |
content | string | New task title / content |
description | string | New description |
due_date | string | New due date (YYYY-MM-DD) |
evidence_policy | Set 'required' to force completion evidence; null to clear (admin key required to remove a required policy) | |
labels | array | New labels |
priority | integer | New priority (1-4) |
project_id | string | number | Move to project ID |
assign_task
Assign a task to an agent (or unassign by passing null)
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | number | null | Agent ID to assign the task to, or null to unassign |
task_id * | string | number | The task ID to assign |
delegate_task
Delegate a task: create a child task linked to a parent. The parent's status flips to 'delegated'. Use this (not assign_task) for multi-agent handoffs so the delegation chain is recorded.
| Parameter | Type | Description |
|---|---|---|
content * | string | Child task title / content |
task_id * | string | number | Parent task ID to delegate from |
assigned_to_agent_id | string | number | Agent ID to assign the child task to |
description | string | Detailed description |
due_date | string | Due date in YYYY-MM-DD format |
labels | array | Labels to apply |
priority | integer | Priority: 1=normal, 2=medium, 3=high, 4=urgent |
project_id | string | number | Project ID (admin only for non-self delegations) |
get_task_chain
Get the full delegation chain for a task (root + all descendants, sorted by depth). Use this to inspect parent/child accountability.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | number | Any task ID in the chain |
get_task_context
Read selected persistent task state. Default summary returns canonical current-state keys plus a paginated key index, not the whole history. Supply exact keys to retrieve particular values, view=keys to browse the index, or view=full for explicit complete access. Large responses use text cursors; never mistake a fragment for a complete document. Preserve version for guarded updates. Historical noncanonical keys remain available through the index and exact key reads.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | number | The task ID whose context to read |
cursor | string | Next text cursor returned by a large read. Repeat identical selectors; changed content invalidates the cursor. |
include_provenance | boolean | Include per-key author/source/version provenance for current live context entries. |
key_limit | integer | Key index page size (default 25); summary/keys views only |
key_offset | integer | Key index next_offset; summary/keys views only |
keys | array | Exact top-level keys, including punctuation; missing keys are reported |
max_chars | integer | Maximum response characters (default 6000); omitted data remains explicitly retrievable. |
view | string | Default summary; supplying keys without view selects only those exact keys |
update_task_context
Merge keys into persistent task context, preserving other keys. Keep a compact current_state/next_step and retrieve history only when needed. Pass expected_version from get_task_context to guard concurrent writes. Returns a compact acknowledgment, not merged history. A conflict applies no write: read the relevant current keys, merge and retry explicitly.
| Parameter | Type | Description |
|---|---|---|
context * | object | Object whose keys are merged (not replaced) into existing context |
task_id * | string | number | The task ID whose context to update |
expected_version | integer | Optimistic concurrency guard: the context version returned by get_task_context. Omit for an unguarded merge. |
source | string | Attribution source for this context write. Defaults to agent_inferred. |
get_context_history
Read a bounded page of the append-only context provenance ledger. Prefer key to narrow history. Follow the JSON next_cursor using history_cursor for older entries; a Next text cursor instead continues a large current page with identical selectors. History remains complete and explicitly paginated.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | number | The task ID whose context history to read |
cursor | string | Next text cursor returned by a large read. Repeat identical selectors; changed content invalidates the cursor. |
history_cursor | string | API next_cursor from the complete previous JSON history page |
key | string | Optional context key to filter history |
limit | integer | History entries per API page (default 25) |
max_chars | integer | Maximum response characters (default 6000); omitted data remains explicitly retrievable. |
find_duplicate_tasks
Check whether a proposed task is similar to existing open tasks (TF-IDF + cosine similarity). Call this before create_task to avoid redundant work.
| Parameter | Type | Description |
|---|---|---|
content * | string | Proposed task content to check |
threshold | number | Similarity threshold 0-1 (default 0.6) |
get_usage
Get quota and rate-limit information for the current plan. Hosted API only (api.delega.dev) — custom endpoints receive a clear error.
register_human_request
Register one immutable checklist on an existing open, unclaimed, autopilot-hold, evidence-required task assigned to the configured human-request runtime. Recipient is the existing self chat. Equal retries replay; different input conflicts. Registration does not send, run, claim, or grant execution approval. Hosted API must enable this feature.
| Parameter | Type | Description |
|---|---|---|
criteria * | array | |
expected_revision * | integer | Current task revision |
task_id * | string | Existing task's exact internal ID |
timeout_seconds | integer | Bounded run length; default 1200 seconds |
get_human_request
Read a registered human request's immutable scope, phase, version and protected reply evidence. Read-only; never starts a run.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | Existing task's exact internal ID |
get_human_result
Read the canonical human request result. Result is null until two affirmative task-bound replies and completion by the original executor/claim. Human attestation does not independently verify physical state. No recipient identifiers or bearer capabilities are returned.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | Existing task's exact internal ID |
cancel_human_request
Record cancellation using the request version from get_human_request. Prevents new capabilities, accepted replies and completion; the controller releases its own claim. Does not take ownership or reopen completed work. Repeating an already-recorded cancellation is a no-op.
| Parameter | Type | Description |
|---|---|---|
expected_version * | integer | Current human request version, not the task revision |
task_id * | string | Existing task's exact internal ID |
complete_task
Mark a task as completed. Attach `evidence` — structured proof the work happened (commit, PR, CI check, deploy SHA, artifact/URL, command output). Evidence is always welcome and is REQUIRED on tasks whose evidence_policy is 'required' (there, at least one strong kind — commit/pr/ci_check/deploy_sha/artifact_url — must be present; command_output alone is rejected). Evidence is a durable, falsifiable claim recorded on the task; it is not executed or verified by Delega.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | number | The task ID to complete |
claim_generation | integer | Current owned claim generation; required for registered human requests |
evidence | array | Structured completion evidence; required when the task's evidence_policy is 'required' |
expected_revision | integer | Current task revision; required for registered human requests |
claim_task
Claim a task for exclusive processing (work-queue semantics). Without task_id, atomically picks the highest-priority claimable task from the queue — open, unclaimed, and unassigned or assigned to you. With task_id, claims that specific task (e.g. one you found via list_tasks, or after a write was rejected with 'claim it first'); fails with a conflict if it is completed, assigned to another agent, or claimed with a live lease. Returns the claimed task, or reports an empty queue. The claim is a lease (default 300 seconds): extend it with heartbeat_task while working, requeue with release_task,…
| Parameter | Type | Description |
|---|---|---|
labels | array | Only claim tasks carrying all of these labels (queue claim only) |
lease_seconds | integer | Lease duration in seconds (30-3600, default 300) |
project_id | string | number | Only claim tasks in this project (queue claim only) |
task_id | string | number | Claim this specific task instead of the next from the queue |
heartbeat_task
Extend the lease on a task you have claimed. Call this periodically (before lease_expires_at) while working on a long task so the claim is not reclaimed by another agent. Optionally report a session state at the same time (working / waiting_input / errored) so humans and orchestrators can see why the claim is held. Fails with 409 if you no longer hold an active claim — in that case, claim a task again rather than continuing. Hosted API only.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | number | The claimed task ID |
detail | string | Free-text detail for the state (max 500 chars, e.g. 'waiting for API key'). Requires state. |
lease_seconds | integer | New lease duration in seconds from now (30-3600, default 300) |
state | string | Session state to report alongside the heartbeat |
set_task_state
Report the session state of a task you have claimed — working, waiting_input, or errored — without extending the lease. Use this to flag that you are blocked on input or hit an error: the claim stays visible as held-but-stuck instead of faking liveness. Humans and orchestrators see the state via list_tasks/get_task. Fails with 409 if you no longer hold an active claim. Hosted API only.
| Parameter | Type | Description |
|---|---|---|
state * | string | The session state to set |
task_id * | string | number | The claimed task ID |
detail | string | Free-text detail (max 500 chars, e.g. 'needs prod API key', 'build failed: missing dep') |
release_task
Release a task you have claimed back to the queue without completing it. Use when you cannot finish the work or another agent should take over — the task returns to open status and becomes immediately claimable. Leave a `handoff` note so the next agent resumes instead of restarting. Hosted API only.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | number | The claimed task ID to release |
handoff | string | Optional handoff note: where you left off / why you stopped (e.g. 'migration written, blocked on prod DB creds'). The next agent to claim this task sees it as a 'Resuming from' line. If omitted, the t… |
recall
Search your decision-memory across ALL tasks — recall a prior decision, fact, or constraint without knowing which task recorded it. Returns the best-matching context entries (key, value, source, and the task they live on) ranked by relevance, with human-stated facts weighted highest. Use at the START of new work to avoid re-deciding something already settled. Lexical match for now (exact-ish terms beat paraphrases). Read-only; scoped to what you can read. Hosted API only.
| Parameter | Type | Description |
|---|---|---|
q * | string | What you're about to do or looking for, e.g. 'auth token expiry policy' or 'D1 migration approach' |
include_superseded | boolean | Include retracted/overwritten entries (default false) |
key | string | Restrict to a specific context key |
limit | integer | Max results (default 20) |
project_id | string | number | Restrict to one project |
source | string | Restrict to a provenance source |
fleet_attention
Triage board: one call returning everything across the account that needs a human or coordinator — abandoned claims (a crashed/silent agent's expired lease), silent holders, errored and input-blocked tasks, overdue, and looping (repeatedly reopened) tasks. Scoped like stats: coordinators/admins see the whole account, workers see their own involvement. Read-only. Hosted API only.
delete_task
Delete a task permanently
| Parameter | Type | Description |
|---|---|---|
task_id * | string | number | The task ID to delete |
add_comment
Add a comment to a task
| Parameter | Type | Description |
|---|---|---|
content * | string | Comment text |
task_id * | string | number | The task ID to comment on |
author | string | Comment author name |
list_projects
List all projects in Delega
get_stats
Get task statistics from Delega (totals, completed today, due today, overdue, by project)
list_agents
List all registered agents in Delega. Admin keys get the full view; coordinators get a read-only directory (name, role, activity) for resolving agent IDs on tasks.
register_agent
Register a new agent in Delega. Returns the API key (shown only at creation — save it!)
| Parameter | Type | Description |
|---|---|---|
name * | string | Unique agent name (e.g. 'coordinator', 'researcher') |
description | string | What this agent does |
display_name | string | Human-readable name (e.g. 'Research Bot') |
permissions | array | Fine-grained permission scopes ('tasks.read_all', 'tasks.comment_all'). Prefer role presets. |
role | string | Role preset: worker (own-task scope), coordinator (sees + can comment on all account tasks), admin (full account management). Mutually exclusive with permissions. |
set_agent_role
Set an agent's role (admin key required): worker (own-task scope), coordinator (sees + can comment on all account tasks), or admin (full account management). Sandbox agents graduate via the claim flow and cannot be assigned a role.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | number | Agent ID to change |
role * | string | Role preset to apply |
delete_agent
Delete an agent. The API may refuse if the agent has active tasks or is the last active agent.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | number | Agent ID to delete |
list_webhooks
List all webhooks configured for your account (admin only)
create_webhook
Create a webhook to receive event notifications (admin only). Events: task.created, task.updated, task.completed, task.deleted, task.assigned, task.delegated, task.commented, task.claimed, task.released, task.state_changed, task.linked
| Parameter | Type | Description |
|---|---|---|
events * | array | Events to subscribe to |
url * | string | HTTPS URL to receive webhook POST requests |
delete_webhook
Delete a webhook by ID (admin only)
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | number | Webhook ID to delete |
list_automations
List all automation rules configured for your account, with run/failure counts (admin only). Hosted API only.
create_automation
Create an automation rule: when an event fires and all conditions match, run the actions in-process — no webhook receiver needed (admin only). Example: when a task labeled bug is created, assign it to an agent at priority 3. Safety: cascades are depth- and budget-capped, rules never react to tasks they created, and field mutations on tasks under a live claim are always skipped (comments are append-only and still allowed). Hosted API only.
| Parameter | Type | Description |
|---|---|---|
actions * | array | Actions to run in order |
event * | string | Event that triggers the rule |
name * | string | Short human-readable rule name |
active | boolean | Set false to create the rule disabled |
conditions | array | Conditions, AND-combined; omit to match every event |
update_automation
Update an automation rule (admin only). Only supplied fields change; setting active true re-enables a rule that was auto-disabled after repeated failures. Hosted API only.
| Parameter | Type | Description |
|---|---|---|
automation_id * | string | number | Automation rule ID to update |
actions | array | Replacement actions (full replacement, not a merge) |
active | boolean | Enable or disable the rule |
conditions | array | Replacement conditions (full replacement, not a merge) |
event | string | New trigger event |
name | string | New rule name |
delete_automation
Delete an automation rule and its run log by ID (admin only). Hosted API only.
| Parameter | Type | Description |
|---|---|---|
automation_id * | string | number | Automation rule ID to delete |
list_ingress_sources
List inbound connector sources with delivery counters (admin only). Hosted API only.
create_ingress_source
Create an inbound connector: a signed public endpoint that turns external events (CI failures, alerts, calendars) into Delega tasks (admin only). The sender signs each POST body with HMAC-SHA256 (header X-Delega-Ingress-Signature: t=<unix>,v1=<hex of HMAC(secret, 't.body')>, 5-minute tolerance). Ingress can ONLY create tasks; routing (project/assignee) is pinned here and never payload-controlled; every created task carries the 'ingress' label and provenance marker, and automation rules ignore ingress tasks unless they explicitly opt in with a source=ingress condition. Hosted API only.
| Parameter | Type | Description |
|---|---|---|
name * | string | Short human-readable source name, e.g. 'github-actions-ci' |
template * | object | Maps payload paths to task fields — a closed vocabulary, no expressions |
active | boolean | Set false to create the source disabled |
default_assignee_agent_id | string | Assignee for created tasks (pinned; payload cannot override) |
default_project_id | string | Project for created tasks (pinned; payload cannot override) |
filters | array | Only deliveries passing all filters create tasks |
update_ingress_source
Update an inbound connector source (admin only). Only supplied fields change; pass rotate_secret true to mint a new signing secret (shown once — the old secret stops working immediately). Hosted API only.
| Parameter | Type | Description |
|---|---|---|
source_id * | string | number | Ingress source ID to update |
active | boolean | Enable or disable the source |
default_assignee_agent_id | string | null | New pinned assignee (null clears) |
default_project_id | string | null | New pinned project (null clears) |
filters | array | Replacement filters (full replacement, not a merge) |
name | string | New source name |
rotate_secret | boolean | Mint a new signing secret; the old one stops working immediately |
template | object | Maps payload paths to task fields — a closed vocabulary, no expressions |
delete_ingress_source
Delete an inbound connector source and its delivery log by ID (admin only). Its endpoint immediately returns 404. Hosted API only.
| Parameter | Type | Description |
|---|---|---|
source_id * | string | number | Ingress source ID to delete |