Skip to main content
Glama
mwhesse

Dataverse MCP Server

by mwhesse

get_dataverse_team

Retrieve detailed team information including properties, administrators, business unit associations, and configuration settings to inspect team definitions and understand organizational structure.

Instructions

Retrieves detailed information about a specific team including its properties, administrator, business unit association, and configuration settings. Use this to inspect team definitions and understand team structure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
teamIdYesID of the team to retrieve

Implementation Reference

  • Executes the tool logic: fetches detailed team information from Dataverse using the teamId, formats it into a structured object, and returns it as text content.
    async (params) => { try { const team = await client.get(`teams(${params.teamId})?$select=teamid,name,description,teamtype,membershiptype,emailaddress,yominame,azureactivedirectoryobjectid,businessunitid,administratorid,queueid,delegatedauthorizationid,transactioncurrencyid,createdon,modifiedon,createdby,modifiedby,isdefault,systemmanaged&$expand=administratorid($select=fullname),businessunitid($select=name),createdby($select=fullname),modifiedby($select=fullname)`); const teamInfo = { teamId: team.teamid, name: team.name, description: team.description, teamType: team.teamtype, teamTypeLabel: getTeamTypeLabel(team.teamtype), membershipType: team.membershiptype, membershipTypeLabel: getMembershipTypeLabel(team.membershiptype), emailAddress: team.emailaddress, yomiName: team.yominame, azureActiveDirectoryObjectId: team.azureactivedirectoryobjectid, businessUnitId: team.businessunitid, businessUnitName: team.businessunitid?.name, administratorId: team.administratorid, administratorName: team.administratorid?.fullname, queueId: team.queueid, teamTemplateId: team.teamtemplateid, delegatedAuthorizationId: team.delegatedauthorizationid, transactionCurrencyId: team.transactioncurrencyid, createdOn: team.createdon, modifiedOn: team.modifiedon, createdBy: team.createdby?.fullname, modifiedBy: team.modifiedby?.fullname, isDefault: team.isdefault, systemManaged: team.systemmanaged }; return { content: [ { type: "text", text: `Team information:\n\n${JSON.stringify(teamInfo, null, 2)}` } ] }; } catch (error) { return { content: [ { type: "text", text: `Error retrieving team: ${error instanceof Error ? error.message : 'Unknown error'}` } ], isError: true }; } } );
  • Defines the tool's input schema (teamId), title, and description.
    { title: "Get Dataverse Team", description: "Retrieves detailed information about a specific team including its properties, administrator, business unit association, and configuration settings. Use this to inspect team definitions and understand team structure.", inputSchema: { teamId: z.string().describe("ID of the team to retrieve") } },
  • Registers the 'get_dataverse_team' tool with the MCP server using server.registerTool, including schema and handler.
    server.registerTool( "get_dataverse_team", { title: "Get Dataverse Team", description: "Retrieves detailed information about a specific team including its properties, administrator, business unit association, and configuration settings. Use this to inspect team definitions and understand team structure.", inputSchema: { teamId: z.string().describe("ID of the team to retrieve") } }, async (params) => { try { const team = await client.get(`teams(${params.teamId})?$select=teamid,name,description,teamtype,membershiptype,emailaddress,yominame,azureactivedirectoryobjectid,businessunitid,administratorid,queueid,delegatedauthorizationid,transactioncurrencyid,createdon,modifiedon,createdby,modifiedby,isdefault,systemmanaged&$expand=administratorid($select=fullname),businessunitid($select=name),createdby($select=fullname),modifiedby($select=fullname)`); const teamInfo = { teamId: team.teamid, name: team.name, description: team.description, teamType: team.teamtype, teamTypeLabel: getTeamTypeLabel(team.teamtype), membershipType: team.membershiptype, membershipTypeLabel: getMembershipTypeLabel(team.membershiptype), emailAddress: team.emailaddress, yomiName: team.yominame, azureActiveDirectoryObjectId: team.azureactivedirectoryobjectid, businessUnitId: team.businessunitid, businessUnitName: team.businessunitid?.name, administratorId: team.administratorid, administratorName: team.administratorid?.fullname, queueId: team.queueid, teamTemplateId: team.teamtemplateid, delegatedAuthorizationId: team.delegatedauthorizationid, transactionCurrencyId: team.transactioncurrencyid, createdOn: team.createdon, modifiedOn: team.modifiedon, createdBy: team.createdby?.fullname, modifiedBy: team.modifiedby?.fullname, isDefault: team.isdefault, systemManaged: team.systemmanaged }; return { content: [ { type: "text", text: `Team information:\n\n${JSON.stringify(teamInfo, null, 2)}` } ] }; } catch (error) { return { content: [ { type: "text", text: `Error retrieving team: ${error instanceof Error ? error.message : 'Unknown error'}` } ], isError: true }; } } ); }
  • Helper function to convert team type numeric value to human-readable label, used in the handler.
    function getTeamTypeLabel(teamType: number): string { switch (teamType) { case 0: return 'Owner'; case 1: return 'Access'; case 2: return 'Security Group'; case 3: return 'Office Group'; default: return 'Unknown'; } }
  • Helper function to convert membership type numeric value to human-readable label, used in the handler.
    function getMembershipTypeLabel(membershipType: number): string { switch (membershipType) { case 0: return 'Members and guests'; case 1: return 'Members'; case 2: return 'Owners'; case 3: return 'Guests'; default: return 'Unknown'; } }

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