convert_owner_team_to_access_team
Convert an owner team to an access team to change record ownership and sharing capabilities. This irreversible action modifies how records owned by the team are managed.
Instructions
Converts an owner team to an access team, changing how the team can be used for record ownership and sharing. WARNING: This action cannot be undone and affects how records owned by this team are managed.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teamId | Yes | ID of the owner team to convert to access team |
Implementation Reference
- src/tools/team-tools.ts:501-525 (handler)The handler function that implements the core logic of the tool. It takes the teamId parameter and calls the Dataverse 'ConvertOwnerTeamToAccessTeam' action, returning success or error response.async (params) => { try { await client.callAction('ConvertOwnerTeamToAccessTeam', { TeamId: params.teamId }); return { content: [ { type: "text", text: `Successfully converted owner team to access team.` } ] }; } catch (error) { return { content: [ { type: "text", text: `Error converting team: ${error instanceof Error ? error.message : 'Unknown error'}` } ], isError: true }; }
- src/tools/team-tools.ts:494-500 (schema)Defines the tool's title, description, and input schema using Zod for validating the required 'teamId' parameter.{ title: "Convert Owner Team to Access Team", description: "Converts an owner team to an access team, changing how the team can be used for record ownership and sharing. WARNING: This action cannot be undone and affects how records owned by this team are managed.", inputSchema: { teamId: z.string().describe("ID of the owner team to convert to access team") } },
- src/index.ts:209-209 (registration)Registers the tool by invoking the exported registration function from team-tools.ts with the MCP server and Dataverse client instances.convertOwnerTeamToAccessTeamTool(server, dataverseClient);
- src/tools/team-tools.ts:491-528 (registration)The exported function that performs the tool registration, including the tool name, schema, and handler implementation.export function convertOwnerTeamToAccessTeamTool(server: McpServer, client: DataverseClient) { server.registerTool( "convert_owner_team_to_access_team", { title: "Convert Owner Team to Access Team", description: "Converts an owner team to an access team, changing how the team can be used for record ownership and sharing. WARNING: This action cannot be undone and affects how records owned by this team are managed.", inputSchema: { teamId: z.string().describe("ID of the owner team to convert to access team") } }, async (params) => { try { await client.callAction('ConvertOwnerTeamToAccessTeam', { TeamId: params.teamId }); return { content: [ { type: "text", text: `Successfully converted owner team to access team.` } ] }; } catch (error) { return { content: [ { type: "text", text: `Error converting team: ${error instanceof Error ? error.message : 'Unknown error'}` } ], isError: true }; } } ); }