Skip to main content
Glama

add-project-member

Assign users to a project on Miro MCP by specifying their email and role, ensuring proper access and collaboration within the team and organization.

Instructions

Adds a member to a project (Enterprise only)

Input Schema

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

Implementation Reference

  • The asynchronous handler function that executes the tool logic: constructs a request and calls MiroClient.getApi().enterpriseAddProjectMember to add a member to the project, handles errors, and returns the response.
    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); } }
  • The ToolSchema object defining the tool's name, description, and input schema using Zod for validation of orgId, teamId, projectId, email, and role parameters.
    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)
    The registration of the addProjectMemberTool with the ToolBootstrapper instance.
    .register(addProjectMemberTool)
  • src/index.ts:98-98 (registration)
    The import statement that loads the addProjectMemberTool for registration.
    import addProjectMemberTool from './tools/addProjectMember.js';

Other Tools

Related 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