Get Website Team
get_website_teamRetrieve the list of team members assigned to a specific website using its ID.
Instructions
Get website team members.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| website_id | Yes | The website ID |
Implementation Reference
- server/index.js:487-501 (registration)Registration of the 'get_website_team' tool via server.registerTool().
server.registerTool( "get_website_team", { title: "Get Website Team", description: "Get website team members.", inputSchema: { website_id: z.string().describe("The website ID"), }, annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false }, }, async ({ website_id }) => { const data = await apiCall(`/v1/workspace/website/${website_id}/team`, "GET"); return { content: [{ type: "text", text: JSON.stringify(data?.result ?? data, null, 2) }] }; } ); - server/index.js:492-494 (schema)Input schema for get_website_team: requires a website_id string.
inputSchema: { website_id: z.string().describe("The website ID"), }, - server/index.js:497-500 (handler)Handler function that calls GET /v1/workspace/website/{website_id}/team via apiCall and returns the result.
async ({ website_id }) => { const data = await apiCall(`/v1/workspace/website/${website_id}/team`, "GET"); return { content: [{ type: "text", text: JSON.stringify(data?.result ?? data, null, 2) }] }; } - server/index.js:112-123 (helper)The apiCall helper function used by the handler to make HTTP requests with the API key.
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(); }