Skip to main content
Glama
mwhesse

Dataverse MCP Server

by mwhesse

get_dataverse_publisher

Retrieve detailed publisher information including customization prefix, option value prefix, and configuration settings to understand Dataverse customization properties.

Instructions

Retrieves detailed information about a specific publisher including its customization prefix, option value prefix, and configuration. Use this to inspect publisher properties and understand customization settings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uniqueNameYesUnique name of the publisher to retrieve

Implementation Reference

  • Handler function that executes the tool: queries Dataverse publishers by uniqueName and returns formatted information or error.
    async (params) => { try { const result = await client.get( `publishers?$filter=uniquename eq '${params.uniqueName}'` ); if (!result.value || result.value.length === 0) { throw new Error(`Publisher with unique name '${params.uniqueName}' not found`); } return { content: [ { type: "text", text: `Publisher information for '${params.uniqueName}':\n\n${JSON.stringify(result.value[0], null, 2)}` } ] }; } catch (error) { return { content: [ { type: "text", text: `Error retrieving publisher: ${error instanceof Error ? error.message : 'Unknown error'}` } ], isError: true }; } }
  • Input schema validating the uniqueName parameter.
    inputSchema: { uniqueName: z.string().describe("Unique name of the publisher to retrieve") }
  • Registration of the get_dataverse_publisher tool within the getPublisherTool function.
    server.registerTool( "get_dataverse_publisher", { title: "Get Dataverse Publisher", description: "Retrieves detailed information about a specific publisher including its customization prefix, option value prefix, and configuration. Use this to inspect publisher properties and understand customization settings.", inputSchema: { uniqueName: z.string().describe("Unique name of the publisher to retrieve") } }, async (params) => { try { const result = await client.get( `publishers?$filter=uniquename eq '${params.uniqueName}'` ); if (!result.value || result.value.length === 0) { throw new Error(`Publisher with unique name '${params.uniqueName}' not found`); } return { content: [ { type: "text", text: `Publisher information for '${params.uniqueName}':\n\n${JSON.stringify(result.value[0], null, 2)}` } ] }; } catch (error) { return { content: [ { type: "text", text: `Error retrieving publisher: ${error instanceof Error ? error.message : 'Unknown error'}` } ], isError: true }; } } );
  • src/index.ts:170-170 (registration)
    Invocation of getPublisherTool which registers the tool with the MCP server.
    getPublisherTool(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