Get Workspace Team
get_workspace_teamRetrieve workspace team members to view current collaborators.
Instructions
Get workspace team members.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server/index.js:182-194 (registration)Registration of the 'get_workspace_team' tool. The handler is defined inline within server.registerTool().
server.registerTool( "get_workspace_team", { title: "Get Workspace Team", description: "Get workspace team members.", inputSchema: {}, annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false }, }, async () => { const data = await apiCall("/v1/workspace/team", "GET"); return { content: [{ type: "text", text: JSON.stringify(data?.result ?? data, null, 2) }] }; } ); - server/index.js:190-193 (handler)Handler function for 'get_workspace_team' - makes a GET API call to /v1/workspace/team and returns the result.
async () => { const data = await apiCall("/v1/workspace/team", "GET"); return { content: [{ type: "text", text: JSON.stringify(data?.result ?? data, null, 2) }] }; } - server/index.js:184-189 (schema)Input schema definition for 'get_workspace_team' tool. Empty input schema (no parameters required), with read-only annotation.
{ title: "Get Workspace Team", description: "Get workspace team members.", inputSchema: {}, annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false }, }, - server/index.js:112-123 (helper)Helper function 'apiCall' used by the tool handler to make authenticated HTTP requests to the API.
async function apiCall(path, method, body) { const url = `${BASE_URL}${path}`; const res = await fetch(url, { method, headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json", }, ...(body ? { body: JSON.stringify(body) } : {}), }); return res.json(); }