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
| Name | Required | Description | Default |
|---|---|---|---|
| uniqueName | Yes | Unique name of the publisher to retrieve |
Implementation Reference
- src/tools/solution-tools.ts:186-215 (handler)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 }; } }
- src/tools/solution-tools.ts:182-184 (schema)Input schema validating the uniqueName parameter.inputSchema: { uniqueName: z.string().describe("Unique name of the publisher to retrieve") }
- src/tools/solution-tools.ts:177-216 (registration)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);