Closedloop.ai
MCP Server

Projects

List, read, create, and update projects, find team ids, and reorder a project stack rank

Overview

Projects are the top-level containers for documents. Each project has a PRO-* slug, and every project tool that takes a project accepts either its UUID or that slug.

ToolScopePurpose
list-projectsreadList projects
get-projectreadFetch one project
list-teamsreadList the organization's teams, the source of teamId
create-projectwriteCreate a project
update-projectwriteUpdate a project's fields or owning teams
move-artifactwriteReorder a root artifact in a project's stack rank

A tool is offered only when your grant carries its scope. Scopes do not imply each other: a write-only grant is not offered the read tools above.

Every tool returns its result as JSON text. A failure comes back as a tool result with isError: true whose text carries a title, a description, any remediation steps, and the error code, message, and timestamp when the API supplied them.


List Projects

Tool: list-projects Scope: read Underlying API: GET /projects

NameTypeRequiredDescription
limitintegerNoProjects to return, 1–100. Default 25.
offsetintegerNoStarting offset, minimum 0. Default 0.

The tool reads the full project list from the API and pages it in the MCP server.

Returns

A paginated envelope. Each item carries only id, name, slug, status, and updatedAt.

{
  "total": 12,
  "offset": 0,
  "limit": 25,
  "returned": 12,
  "hasMore": false,
  "nextOffset": null,
  "items": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Enterprise",
      "slug": "PRO-25",
      "status": "IN_PROGRESS",
      "updatedAt": "2026-10-01T12:00:00.000Z"
    }
  ]
}

nextOffset is null when hasMore is false. Page until hasMore is false.

Example

list-projects(limit: 50)

Get Project

Tool: get-project Scope: read Underlying API: GET /projects/{projectId}

NameTypeRequiredDescription
projectIdstringYesProject UUID or slug (e.g. PRO-7). Pass the slug verbatim; the API resolves it. Blank, ., and .. are rejected.

Returns

The project record exactly as the API returns it, unshaped.

Errors

  • A missing or blank projectId is rejected with a message pointing you to list-projects.
  • A project that is not in your organization returns not found.

Example

get-project(projectId: "PRO-25")

List Teams

Tool: list-teams Scope: read Underlying API: GET /teams

Every project must belong to at least one team. Use this tool to find the teamId that create-project needs and the teamIds that update-project accepts. Teams are identified by UUID only; there is no slug form.

NameTypeRequiredDescription
limitintegerNoTeams to return, 1–100. Default 25.
offsetintegerNoStarting offset, minimum 0. Default 0.

Returns

The same paginated envelope as list-projects. Each item carries id, name, slug, memberCount, projectCount, and updatedAt.

{
  "total": 2,
  "offset": 0,
  "limit": 25,
  "returned": 2,
  "hasMore": false,
  "nextOffset": null,
  "items": [
    {
      "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "name": "Platform",
      "slug": "platform",
      "memberCount": 8,
      "projectCount": 5,
      "updatedAt": "2026-09-14T09:30:00.000Z"
    }
  ]
}

Example

list-teams()

Create Project

Tool: create-project Scope: write Underlying API: POST /projects

NameTypeRequiredDescription
namestringYesProject name. The API rejects an empty name.
teamIdstring (UUID)Optional in the schema, required by the APIThe team that will own the project, from list-teams. Sent to the API as teamIds: [teamId].
descriptionstringNoProject description.
priorityLOW | MEDIUM | HIGH | URGENTNoOmit to create the project with no priority. null is not accepted.
statusNOT_STARTED | IN_PROGRESS | COMPLETED | ARCHIVEDNoInitial status.

Returns

The created project as the API returns it, including its assigned PRO-* slug.

Errors

  • No teamId. The API returns 400. Its message names the organization's teams so you can retry with one. When the roster is too long for the message, it says how many teams were left out and points you to list-teams.
  • A teamId that is not a UUID is rejected by the tool schema before any request is made.

Example

create-project(
  name: "Checkout Redesign",
  teamId: "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  priority: "HIGH"
)

Update Project

Tool: update-project Scope: write Underlying API: PUT /projects/{projectId}

Only the fields you pass are sent. An omitted field is left unchanged.

NameTypeRequiredDescription
projectIdstringYesProject UUID or slug (e.g. PRO-7).
namestringNoNew name. The API rejects an empty name.
teamIdsstring[] (UUIDs)No1–100 team UUIDs. Replaces the project's current teams, so pass every team the project should belong to. An empty array is rejected.
descriptionstringNoNew description.
priorityLOW | MEDIUM | HIGH | URGENT | nullNoNew priority. Pass null to clear it.
statusNOT_STARTED | IN_PROGRESS | COMPLETED | ARCHIVEDNoNew status.

A project created before teams were required can have no team, which leaves it with no URL in the web app. Setting teamIds makes it reachable again.

Returns

The updated project as the API returns it.

Errors

  • A teamIds element that is not a UUID, an empty array, or more than 100 entries is rejected by the tool schema.
  • A team id that does not resolve in your organization returns 400 with a message that names the organization's teams.
  • A project that is not in your organization returns not found.

Example

update-project(
  projectId: "PRO-25",
  status: "COMPLETED",
  priority: null
)

Move Artifact

Tool: move-artifact Scope: write Underlying API: POST /projects/{projectId}/artifacts/move

Reorders a root artifact within its project's stack rank, the priority order shown on the project page. Only top-level documents take part in the stack rank; nested children do not. Read sortOrder from list-documents or get-document to see the current order (lower sorts first). See Documents.

NameTypeRequiredDescription
projectIdstringYesProject UUID or slug (e.g. PRO-7).
artifactIdstringYesThe artifact to move: UUID or document slug (e.g. PRD-7, PLN-12, ISS-42).
positiontop | bottom | before | afterYestop or bottom moves to an end of the project. before or after places it next to referenceArtifactId.
referenceArtifactIdstringWith before / afterUUID or document slug of the artifact to position against. Must be omitted for top / bottom.

Returns

{
  "moved": true,
  "artifactId": "ISS-42",
  "position": "after",
  "referenceArtifactId": "ISS-40",
  "newSortOrder": 3
}

artifactId and referenceArtifactId echo what you sent. referenceArtifactId is null for top and bottom. newSortOrder is null if the API response did not carry a number.

Errors

  • before or after without referenceArtifactId, or top or bottom with one, is refused by the tool before any request is made.
  • The project, the artifact, or the reference artifact not being found returns 404.
  • An invalid or ambiguous reference returns 400.

Example

move-artifact(projectId: "PRO-25", artifactId: "ISS-42", position: "top")

On this page