Skip to main content
Glama
mwhesse

Dataverse MCP Server

by mwhesse

delete_dataverse_businessunit

Remove a business unit from Dataverse permanently. This action cannot be undone and may impact associated users and teams.

Instructions

Permanently deletes a business unit from Dataverse. WARNING: This action cannot be undone and may affect users and teams associated with the business unit. Use with extreme caution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
businessUnitIdYesUnique identifier of the business unit to delete

Implementation Reference

  • The asynchronous handler function that implements the core logic of the delete_dataverse_businessunit tool. It performs a DELETE request to the Dataverse businessunits endpoint using the provided businessUnitId and returns success or error response.
    async (params: any) => { try { await client.delete(`businessunits(${params.businessUnitId})`); return { content: [ { type: "text", text: "Successfully deleted business unit" } ] }; } catch (error) { return { content: [ { type: "text", text: `Error deleting business unit: ${error instanceof Error ? error.message : 'Unknown error'}` } ], isError: true }; } }
  • The tool metadata including title, description, and Zod-based input schema validating the required businessUnitId parameter.
    { title: "Delete Dataverse Business Unit", description: "Permanently deletes a business unit from Dataverse. WARNING: This action cannot be undone and may affect users and teams associated with the business unit. Use with extreme caution.", inputSchema: { businessUnitId: z.string().describe("Unique identifier of the business unit to delete") } },
  • The server.registerTool call that registers the delete_dataverse_businessunit tool, including schema and inline handler, within the deleteBusinessUnitTool export function.
    server.registerTool( "delete_dataverse_businessunit", { title: "Delete Dataverse Business Unit", description: "Permanently deletes a business unit from Dataverse. WARNING: This action cannot be undone and may affect users and teams associated with the business unit. Use with extreme caution.", inputSchema: { businessUnitId: z.string().describe("Unique identifier of the business unit to delete") } }, async (params: any) => { try { await client.delete(`businessunits(${params.businessUnitId})`); return { content: [ { type: "text", text: "Successfully deleted business unit" } ] }; } catch (error) { return { content: [ { type: "text", text: `Error deleting business unit: ${error instanceof Error ? error.message : 'Unknown error'}` } ], isError: true }; } } );
  • src/index.ts:215-215 (registration)
    Top-level invocation in the main server initialization that calls deleteBusinessUnitTool to register the tool on the MCP server instance.
    deleteBusinessUnitTool(server, dataverseClient);

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/mwhesse/mcp-dataverse'

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