Skip to main content
Glama

add-project-member

Add a user to a Miro project by specifying their email and assigning a role like owner, editor, commenter, or viewer. Requires organization, team, and project IDs.

Instructions

Adds a member to a project (Enterprise only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orgIdYesThe ID of the organization to which the project belongs
teamIdYesThe ID of the team to which the project belongs
projectIdYesThe ID of the project to which you want to add a user
emailYesEmail ID of the user to add to the project
roleYesRole to assign to the user

Implementation Reference

  • The main handler function that executes the tool logic by calling the Miro API to add a project member.
    fn: async ({ orgId, teamId, projectId, email, role }) => { try { const addProjectMemberRequest = { email, role }; const response = await MiroClient.getApi().enterpriseAddProjectMember( orgId, teamId, projectId, addProjectMemberRequest ); return ServerResponse.text(JSON.stringify(response.body, null, 2)); } catch (error) { process.stderr.write(`Error adding project member: ${error}\n`); return ServerResponse.error(error); } }
  • Tool schema definition including name, description, and Zod input schema for arguments.
    const addProjectMemberTool: ToolSchema = { name: "add-project-member", description: "Adds a member to a project (Enterprise only)", args: { orgId: z.string().describe("The ID of the organization to which the project belongs"), teamId: z.string().describe("The ID of the team to which the project belongs"), projectId: z.string().describe("The ID of the project to which you want to add a user"), email: z.string().describe("Email ID of the user to add to the project"), role: z.enum(["owner", "editor", "commenter", "viewer"]).describe("Role to assign to the user") },
  • src/index.ts:199-199 (registration)
    Registration of the add-project-member tool with the ToolBootstrapper.
    .register(addProjectMemberTool)
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/k-jarzyna/mcp-miro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server