Closedloop.ai
MCP Server

Users

Read the authenticated user and list the organization users available for assignment

Overview

Two read tools identify people: get-me returns the user the credential belongs to, and list-users lists the users in that user's organization. Users have no slug. Every tool that takes a user, such as the assigneeId filter on list-documents, takes a user UUID from one of these tools.

ToolScopePurpose
get-mereadThe authenticated user's profile
list-usersreadOrganization users

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.


Get Me

Tool: get-me Scope: read Underlying API: GET /me

Takes no parameters.

Returns

The user record as the API returns it:

{
  "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
  "clerkId": "user_...",
  "organizationId": "f0e1d2c3-b4a5-4968-8776-655443322110",
  "email": "dana@example.com",
  "firstName": "Dana",
  "lastName": "Kim",
  "avatarUrl": null,
  "phoneNumber": null,
  "role": "ENGINEER",
  "linearId": null,
  "slackId": null,
  "githubUsername": "dkim",
  "active": true,
  "createdAt": "2026-03-01T10:00:00.000Z",
  "updatedAt": "2026-10-20T08:15:00.000Z"
}

role is one of PM, DESIGNER, TECH_LEAD, ENGINEER, or STAKEHOLDER.

Errors

  • A user record that cannot be found for the credential returns 404.

Example

get-me()

List Users

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

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

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

Returns

A paginated envelope. Each item carries only id, firstName, lastName, email, role, and updatedAt.

{
  "total": 14,
  "offset": 0,
  "limit": 25,
  "returned": 14,
  "hasMore": false,
  "nextOffset": null,
  "items": [
    {
      "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
      "firstName": "Dana",
      "lastName": "Kim",
      "email": "dana@example.com",
      "role": "ENGINEER",
      "updatedAt": "2026-10-20T08:15:00.000Z"
    }
  ]
}

nextOffset is null when hasMore is false.

Example

list-users(limit: 100)

On this page