MCP tools reference
Orrery exposes 39 MCP tools over Streamable HTTP at POST /mcp. Every call authenticates with a workspace-scoped agent API key (Authorization: Bearer <API key>) and is capped by the key owner’s live project permissions.
This page is generated automatically from
contract/mcp-tools.jsonat build time.
Projects & knowledge
Section titled “Projects & knowledge”Discover accessible projects in the API key scope and read or update project-scoped Markdown knowledge.
list_projects
Section titled “list_projects”List the projects this agent key can reach in its workspace. Membership alone grants nothing; only projects in the key’s scope appear.
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId |
string | Yes | The workspace the key is scoped to |
get_project
Section titled “get_project”Read one project the agent key has Read access to.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The project id |
list_knowledge
Section titled “list_knowledge”List the knowledge entries in an in-scope project.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The project id |
get_knowledge
Section titled “get_knowledge”Read one knowledge entry in an in-scope project.
| Parameter | Type | Required | Description |
|---|---|---|---|
entryId |
string | Yes | The knowledge entry id |
create_knowledge
Section titled “create_knowledge”Create a knowledge entry in an in-scope project. Requires Contribute access.
| Parameter | Type | Required | Description |
|---|---|---|---|
title |
string | Yes | |
body |
KnowledgeBody | No | |
projectId |
string | Yes | The project id |
update_knowledge
Section titled “update_knowledge”Edit a knowledge entry in an in-scope project. Requires Contribute access.
| Parameter | Type | Required | Description |
|---|---|---|---|
title |
string | No | |
body |
KnowledgeBody | No | |
entryId |
string | Yes | The knowledge entry id |
Issues, labels, dependencies & comments
Section titled “Issues, labels, dependencies & comments”Create and manage issues, one-level subtasks, project labels, acyclic blocked_by edges, comments, and PR/commit/doc links.
list_issues
Section titled “list_issues”List the issues in an in-scope project.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The project id |
get_issue
Section titled “get_issue”Read one issue in an in-scope project. The issue includes its structured links (PRs, commits, docs and other web URLs) with each link’s kind.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId |
string | Yes | The issue id |
create_issue
Section titled “create_issue”Create an issue in an in-scope project. Omitted status defaults to todo (ready work); pass backlog to stage it for triage. Priority and sortOrder may be set at creation; omitted priority defaults to none and omitted sortOrder is spaced by 65535 from the project-local issue number. Requires Contribute access on the key and on its human owner.
| Parameter | Type | Required | Description |
|---|---|---|---|
title |
string | Yes | |
body |
IssueBody | No | |
status |
IssueStatus | No | |
priority |
IssuePriority | No | |
sortOrder |
IssueSortOrder | No | |
parentIssueId |
string | null | No | |
projectId |
string | Yes | The project id |
update_issue
Section titled “update_issue”Edit an issue’s title or body, move it through the six-state workflow (backlog, todo, in_progress, review, done, cancelled — only done and cancelled set closedAt), change its priority or sortOrder (a float; the midpoint of two neighbours moves one card without rewriting them), or set/clear its assignee ({"type":"human"|"agent","id":"..."}, or null to clear). An assignee must be an active member or a registered agent in the workspace. Requires Contribute access and, for an agent, a live work session on the issue. The actor recorded is the agent, not its human owner.
| Parameter | Type | Required | Description |
|---|---|---|---|
title |
string | No | |
body |
IssueBody | No | |
status |
IssueStatus | No | |
priority |
IssuePriority | No | |
sortOrder |
IssueSortOrder | No | |
assignee |
Assignee | null | No | |
parentIssueId |
string | null | No | |
issueId |
string | Yes | The issue id |
list_labels
Section titled “list_labels”List the project-scoped labels in an in-scope project, with their names and hex colors. Needs Read access.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The project id |
create_label
Section titled “create_label”Create a project-scoped label with a name and six-digit hex color. Names are unique per project ignoring case. Requires Contribute access on the key and its human owner.
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | |
color |
LabelColor | Yes | |
projectId |
string | Yes | The project id |
update_label
Section titled “update_label”Rename a project label or change its hex color; omitted fields stay unchanged. The new name must stay unique per project ignoring case. Requires Contribute access.
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string | No | |
color |
LabelColor | No | |
labelId |
string | Yes | The label id |
delete_label
Section titled “delete_label”Delete a project label and detach it from every issue. Requires Contribute access.
| Parameter | Type | Required | Description |
|---|---|---|---|
labelId |
string | Yes | The label id |
attach_issue_label
Section titled “attach_issue_label”Attach a label from the issue’s own project to an issue. Attaching an already attached label is a no-op. Returns the issue with its labels. Requires Contribute access.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId |
string | Yes | The issue id |
labelId |
string | Yes | The label id |
detach_issue_label
Section titled “detach_issue_label”Detach a label from an issue; detaching a label that is not attached is a no-op. Returns the issue with its labels. Requires Contribute access.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId |
string | Yes | The issue id |
labelId |
string | Yes | The label id |
add_blocked_by
Section titled “add_blocked_by”Record that an issue is blocked by another issue in the same project. A self-link, a cross-project link, and any edge that would form a cycle are refused. Requires Contribute access.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId |
string | Yes | The issue that is being blocked |
blockedByIssueId |
string | Yes | The issue in the same project that blocks it |
remove_blocked_by
Section titled “remove_blocked_by”Remove a blocked_by relation between two issues in the same project. Requires Contribute access; removing a relation that is not there is a no-op.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId |
string | Yes | The issue that is being unblocked |
blockedByIssueId |
string | Yes | The issue that no longer blocks it |
list_blocked_by
Section titled “list_blocked_by”List the issues that block an issue (its prerequisites, in any status). Read access is enough.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId |
string | Yes | The issue id |
list_blocking
Section titled “list_blocking”List the issues that an issue blocks (its dependants, in any status). Read access is enough.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId |
string | Yes | The issue id |
list_comments
Section titled “list_comments”List the comments on an in-scope issue.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId |
string | Yes | The issue id |
create_comment
Section titled “create_comment”Comment on an in-scope issue. Requires Contribute access.
| Parameter | Type | Required | Description |
|---|---|---|---|
body |
string | Yes | |
issueId |
string | Yes | The issue id |
add_issue_link
Section titled “add_issue_link”Attach a PR, commit, external doc, or other web URL to an in-scope issue. Requires Contribute access. Only http and https URLs are accepted, and the same URL cannot be attached twice to one issue. The actor recorded is the agent, not its human owner.
| Parameter | Type | Required | Description |
|---|---|---|---|
url |
IssueLinkUrl | Yes | |
title |
string | Yes | |
kind |
IssueLinkKind | Yes | |
issueId |
string | Yes | The issue id |
remove_issue_link
Section titled “remove_issue_link”Remove a previously attached link from an in-scope issue. Requires Contribute access. Removing a link that is not attached is an error, not a silent no-op.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId |
string | Yes | The issue id |
linkId |
string | Yes | The link id |
Work sessions & telemetry
Section titled “Work sessions & telemetry”Pull ready work, hold five-minute atomic Claim leases, stream durable progress or ephemeral sidecar activity, and hand off for review.
ready_work
Section titled “ready_work”List minimal ready work in a project: todo issues that are not Needs input, have no live active session, and have no blocker whose status is not done or cancelled, evaluated in database time. backlog, in_progress, review and terminal issues are never offered. Optional filter is all (default), assignedToMe or unassigned; an agent never sees issues assigned to a human or another agent. Work assigned to the caller sorts first, then priority urgent > high > medium > low > none, then sortOrder ascending, then creation time ascending. Needs no claim.
No input parameters.
claim_issue
Section titled “claim_issue”Claim a todo issue this agent needs to work on, for this agent and run; the claim atomically moves it to in_progress. Backlog, review and terminal issues are refused. An agent may claim only work that is unassigned or assigned to that same agent; issues assigned to a human or another agent are refused. One active session per issue: a second worker is refused. Helpers on the same issue pass the same runId and join the existing session. The claim is a five-minute lease in database time; renew it while working.
No input parameters.
renew_claim
Section titled “renew_claim”Check in on an issue this agent currently holds and refresh its five-minute lease in database time. Requires a live session; an expired or released session is never renewed or silently reacquired. Pass sessionId to fence a delayed call from an interrupted session: it is refused if that session is no longer the live one, even after reacquisition. Optionally report cumulative inputTokens, outputTokens and costUsdMicros: each provided value overwrites the session’s total, an omitted one is preserved, and unreported ones stay null. The returned session carries stopRequested, stopRequestedAt and stopReason: when stopRequested is true a human has asked you to stop, so flush a brief handoff and call stop_session promptly. The five-minute lease remains the hard backstop.
No input parameters.
report_progress
Section titled “report_progress”Record progress on the live session this agent holds for an issue. Progress is stored independently of the lease, so an interruption never erases it. Requires a live session; pass sessionId to refuse a delayed report from an expired session instead of writing to a newer one. Optionally report cumulative inputTokens, outputTokens and costUsdMicros: each provided value overwrites the session’s total, an omitted one is preserved, and unreported ones stay null. The returned session carries stopRequested, stopRequestedAt and stopReason: check them on every report and stop promptly if a human has asked you to stop.
No input parameters.
log_session_activity
Section titled “log_session_activity”Append an ephemeral thought, action or status entry to the live work session this agent holds on an issue. Optional detail is an extensible JSON object; when it carries a block, that block must be a validated v1 key_value, table, checklist or test_results block, while detail without a block accepts arbitrary JSON. Entries are kept independently of the claim lease, so an interrupted or completed session keeps its whole trail, and are never posted as issue comments. Requires a live session; pass sessionId to refuse a delayed write from an expired session instead of writing to a newer one.
No input parameters.
get_work_session
Section titled “get_work_session”Read the latest work session recorded for an issue, from any agent, including its recorded progress and lease deadline. This is a read: it needs no live claim and never renews one.
No input parameters.
list_work_sessions
Section titled “list_work_sessions”List the work sessions recorded for an issue, including completed, released and expired ones. This is a read and needs no claim.
No input parameters.
resume_work_session
Section titled “resume_work_session”Inspect the work session the given run (the harness conversation, including resumes) recorded for an issue. Returns disposition active, expired, ended or none, and the session with its recorded progress. This is a read in database time: it never renews or resurrects an expired lease.
No input parameters.
reacquire_issue
Section titled “reacquire_issue”Reacquire this run’s expired claim on an issue after an interruption. Creates a new active session for the same agent, run, workspace and issue, carrying forward the recorded progress, and only when no other worker holds a live claim and the issue is not paused for input. Retries with the same run return the same session; a stale call on an expired session is refused, never turned into a fresh claim.
No input parameters.
stop_session
Section titled “stop_session”Complete or release the live session this agent holds for an issue. Requires a live session. outcome defaults to review: the issue moves to the non-terminal review handoff with closedAt null. outcome: done closes the issue (closedAt set, unblocking dependents) and requires Contribute or Manage; outcome: released gives up the claim and returns an in_progress issue to todo. Pass sessionId to fence a delayed completion from an interrupted session: it is refused rather than completing a newer session. Optionally report final cumulative inputTokens, outputTokens and costUsdMicros; each provided value overwrites the session’s total and an omitted one is preserved.
No input parameters.
list_session_activities
Section titled “list_session_activities”List the ephemeral thought/action/status timeline of one work session on an issue, newest first. Read access to the issue’s project is enough; no claim is needed. These entries are separate from the permanent issue comments and survive expiry or completion.
No input parameters.
list_activity
Section titled “list_activity”Read an in-scope project’s activity feed, including which agent performed each action.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The project id |
Needs-input inbox
Section titled “Needs-input inbox”Open blocking questions with a proposed fallback and inspect human replies or one-hour timeout dispositions.
ask_for_input
Section titled “ask_for_input”Ask the team a blocking question about an issue this agent currently holds. Include a concrete proposed fallback; the agent cannot authorize it. The question opens for one hour in database time, keeps the claim while the agent checks in, sets the issue to Needs input and emails the agent’s owner. A human with Contribute or Manage answers through the inbox. Only a human may set the project fallback policy or an issue override; the agent cannot authorize its own fallback. At the deadline a require_human question pauses, releasing the claim and keeping Needs input; a fallback_allowed question resolves to fallback_used, clears Needs input and lets the worker continue without releasing its claim.
No input parameters.
list_issue_questions
Section titled “list_issue_questions”List every question asked about an in-scope issue and its resolution, newest first. A pending question past its one-hour deadline is reported in database time as paused (require_human) or fallback_used (fallback_allowed). A fallback_used question carries authorizedFallback, the proposed fallback the harness may act on; before authorization, on pause or on answer, authorizedFallback is null. Needs no claim; answering remains a human-only REST operation, and a late human answer is a follow-up that never reverses the fallback.
No input parameters.
Runs & harness check-in
Section titled “Runs & harness check-in”Register or update an active Harness run with model and version metadata.
orrery_run_checkin
Section titled “orrery_run_checkin”Report a harness conversation’s identity and metadata. Correlate by an explicit runId or by the harness’s (harness, nativeSessionId) key — send runKey as null when only a runId is known; a new key starts a run, the same key resumes it. Report model and harnessVersion directly or under reported (#29); they are stored only as reported and missing values stay unknown. This tool does not claim work or renew a lease.
No input parameters.