delega

v1.19.1
io.github.delega-dev/delega Checked 9 hours ago Published 1 month ago

Delega 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.

ParameterTypeDescription
assigned_tostringAgent ID/external ID, or none for unassigned tasks
claimedbooleanFilter by claim status (true = currently claimed tasks)
completedbooleanFilter by completion status
duestringFilter by due date category
labelstringFilter by label name
limitintegerMaximum tasks to fetch (default 25); response budget can show fewer
max_charsintegerMaximum response characters (default 6000); omitted data remains explicitly retrievable.
offsetintegerUse next_offset from the previous page (default 0)
project_idstring | numberFilter by project ID
searchstringSearch task title and description
sortstring
statestring

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.

ParameterTypeDescription
task_id *string | numberThe task ID (use the ID from list_tasks, e.g. '3a7d...')
cursorstringNext text cursor returned by a large read. Repeat identical selectors; changed content invalidates the cursor.
max_charsintegerMaximum response characters (default 6000); omitted data remains explicitly retrievable.

create_task

Create a new task in Delega

ParameterTypeDescription
content *stringTask title / content
descriptionstringDetailed description
due_datestringDue date in YYYY-MM-DD format
evidence_policystringSet 'required' to force structured completion evidence (commit/PR/CI/etc.) before this task can be completed
labelsarrayLabels to apply
priorityintegerPriority: 1=normal, 2=medium, 3=high, 4=urgent
project_idstring | numberProject 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.

ParameterTypeDescription
content *stringTask title/content for spawned instances
rule_type *stringRecurrence rule type
anchor_dayintegerDay of month for monthly/yearly rules
anchor_monthintegerMonth for yearly rules
anchor_weekdayintegerWeekday for weekly rules, Sunday=0
assigned_to_agent_idstring | number | nullOptional assignee for spawned tasks
descriptionstringOptional task description for spawned instances
intervalintegerRule interval, default 1
labelsarrayLabels for spawned tasks
next_due_atstringOptional ISO timestamp for first due occurrence
priorityintegerPriority 1-4
project_idstring | numberOptional project ID
skip_if_openbooleanSkip spawning and roll forward while a prior instance is open
timezonestringIANA timezone, e.g. America/Chicago

update_recurrence

Update a recurring task template, including pausing/resuming with active=false/true.

ParameterTypeDescription
recurrence_id *string | numberThe recurrence ID to update
activebooleanWhether the recurrence is active
anchor_dayDay of month for monthly/yearly rules
anchor_monthMonth for yearly rules
anchor_weekdayWeekday for weekly rules, Sunday=0
assigned_to_agent_idstring | number | nullOptional assignee, or null to clear
contentstringTask title/content for future spawned instances
descriptionstring | nullOptional task description
intervalintegerRule interval
labelsarrayLabels for spawned tasks
next_due_atstring | nullISO timestamp for next due occurrence
priorityintegerPriority 1-4
project_idstring | number | nullOptional project ID, or null to clear
rule_typestringRecurrence rule type
skip_if_openbooleanSkip spawning while a prior instance is open
timezonestringIANA timezone

delete_recurrence

Delete a recurring task template. Existing spawned task instances remain as normal tasks.

ParameterTypeDescription
recurrence_id *string | numberThe recurrence ID to delete

update_task

Update an existing task's fields

ParameterTypeDescription
task_id *string | numberThe task ID to update
assigned_to_agent_idstring | number | nullAssign to agent ID, or null to unassign
contentstringNew task title / content
descriptionstringNew description
due_datestringNew due date (YYYY-MM-DD)
evidence_policySet 'required' to force completion evidence; null to clear (admin key required to remove a required policy)
labelsarrayNew labels
priorityintegerNew priority (1-4)
project_idstring | numberMove to project ID

assign_task

Assign a task to an agent (or unassign by passing null)

ParameterTypeDescription
agent_id *string | number | nullAgent ID to assign the task to, or null to unassign
task_id *string | numberThe 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.

ParameterTypeDescription
content *stringChild task title / content
task_id *string | numberParent task ID to delegate from
assigned_to_agent_idstring | numberAgent ID to assign the child task to
descriptionstringDetailed description
due_datestringDue date in YYYY-MM-DD format
labelsarrayLabels to apply
priorityintegerPriority: 1=normal, 2=medium, 3=high, 4=urgent
project_idstring | numberProject 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.

ParameterTypeDescription
task_id *string | numberAny 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.

ParameterTypeDescription
task_id *string | numberThe task ID whose context to read
cursorstringNext text cursor returned by a large read. Repeat identical selectors; changed content invalidates the cursor.
include_provenancebooleanInclude per-key author/source/version provenance for current live context entries.
key_limitintegerKey index page size (default 25); summary/keys views only
key_offsetintegerKey index next_offset; summary/keys views only
keysarrayExact top-level keys, including punctuation; missing keys are reported
max_charsintegerMaximum response characters (default 6000); omitted data remains explicitly retrievable.
viewstringDefault 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.

ParameterTypeDescription
context *objectObject whose keys are merged (not replaced) into existing context
task_id *string | numberThe task ID whose context to update
expected_versionintegerOptimistic concurrency guard: the context version returned by get_task_context. Omit for an unguarded merge.
sourcestringAttribution 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.

ParameterTypeDescription
task_id *string | numberThe task ID whose context history to read
cursorstringNext text cursor returned by a large read. Repeat identical selectors; changed content invalidates the cursor.
history_cursorstringAPI next_cursor from the complete previous JSON history page
keystringOptional context key to filter history
limitintegerHistory entries per API page (default 25)
max_charsintegerMaximum 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.

ParameterTypeDescription
content *stringProposed task content to check
thresholdnumberSimilarity 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.

ParameterTypeDescription
criteria *array
expected_revision *integerCurrent task revision
task_id *stringExisting task's exact internal ID
timeout_secondsintegerBounded 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.

ParameterTypeDescription
task_id *stringExisting 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.

ParameterTypeDescription
task_id *stringExisting 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.

ParameterTypeDescription
expected_version *integerCurrent human request version, not the task revision
task_id *stringExisting 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.

ParameterTypeDescription
task_id *string | numberThe task ID to complete
claim_generationintegerCurrent owned claim generation; required for registered human requests
evidencearrayStructured completion evidence; required when the task's evidence_policy is 'required'
expected_revisionintegerCurrent 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,…

ParameterTypeDescription
labelsarrayOnly claim tasks carrying all of these labels (queue claim only)
lease_secondsintegerLease duration in seconds (30-3600, default 300)
project_idstring | numberOnly claim tasks in this project (queue claim only)
task_idstring | numberClaim 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.

ParameterTypeDescription
task_id *string | numberThe claimed task ID
detailstringFree-text detail for the state (max 500 chars, e.g. 'waiting for API key'). Requires state.
lease_secondsintegerNew lease duration in seconds from now (30-3600, default 300)
statestringSession 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.

ParameterTypeDescription
state *stringThe session state to set
task_id *string | numberThe claimed task ID
detailstringFree-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.

ParameterTypeDescription
task_id *string | numberThe claimed task ID to release
handoffstringOptional 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.

ParameterTypeDescription
q *stringWhat you're about to do or looking for, e.g. 'auth token expiry policy' or 'D1 migration approach'
include_supersededbooleanInclude retracted/overwritten entries (default false)
keystringRestrict to a specific context key
limitintegerMax results (default 20)
project_idstring | numberRestrict to one project
sourcestringRestrict 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

ParameterTypeDescription
task_id *string | numberThe task ID to delete

add_comment

Add a comment to a task

ParameterTypeDescription
content *stringComment text
task_id *string | numberThe task ID to comment on
authorstringComment 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!)

ParameterTypeDescription
name *stringUnique agent name (e.g. 'coordinator', 'researcher')
descriptionstringWhat this agent does
display_namestringHuman-readable name (e.g. 'Research Bot')
permissionsarrayFine-grained permission scopes ('tasks.read_all', 'tasks.comment_all'). Prefer role presets.
rolestringRole 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.

ParameterTypeDescription
agent_id *string | numberAgent ID to change
role *stringRole preset to apply

delete_agent

Delete an agent. The API may refuse if the agent has active tasks or is the last active agent.

ParameterTypeDescription
agent_id *string | numberAgent 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

ParameterTypeDescription
events *arrayEvents to subscribe to
url *stringHTTPS URL to receive webhook POST requests

delete_webhook

Delete a webhook by ID (admin only)

ParameterTypeDescription
webhook_id *string | numberWebhook 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.

ParameterTypeDescription
actions *arrayActions to run in order
event *stringEvent that triggers the rule
name *stringShort human-readable rule name
activebooleanSet false to create the rule disabled
conditionsarrayConditions, 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.

ParameterTypeDescription
automation_id *string | numberAutomation rule ID to update
actionsarrayReplacement actions (full replacement, not a merge)
activebooleanEnable or disable the rule
conditionsarrayReplacement conditions (full replacement, not a merge)
eventstringNew trigger event
namestringNew rule name

delete_automation

Delete an automation rule and its run log by ID (admin only). Hosted API only.

ParameterTypeDescription
automation_id *string | numberAutomation 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.

ParameterTypeDescription
name *stringShort human-readable source name, e.g. 'github-actions-ci'
template *objectMaps payload paths to task fields — a closed vocabulary, no expressions
activebooleanSet false to create the source disabled
default_assignee_agent_idstringAssignee for created tasks (pinned; payload cannot override)
default_project_idstringProject for created tasks (pinned; payload cannot override)
filtersarrayOnly 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.

ParameterTypeDescription
source_id *string | numberIngress source ID to update
activebooleanEnable or disable the source
default_assignee_agent_idstring | nullNew pinned assignee (null clears)
default_project_idstring | nullNew pinned project (null clears)
filtersarrayReplacement filters (full replacement, not a merge)
namestringNew source name
rotate_secretbooleanMint a new signing secret; the old one stops working immediately
templateobjectMaps 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.

ParameterTypeDescription
source_id *string | numberIngress source ID to delete