Skip to main content
Glama
rafteles2016

MCP Dynamics CRM Server

by rafteles2016

dynamics_get_web_resource_content

Retrieve and decode Base64 web resource content from Microsoft Dynamics CRM for development workflows and system management.

Instructions

Recupera o conteúdo de um web resource (decodificado de Base64)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
webResourceIdYesID do web resource

Implementation Reference

  • The implementation of the `dynamics_get_web_resource_content` tool handler, which retrieves and decodes a web resource's content from the Dataverse CRM.
    server.tool(
      "dynamics_get_web_resource_content",
      "Recupera o conteúdo de um web resource (decodificado de Base64)",
      z.object({ webResourceId: z.string().describe("ID do web resource") }).shape,
      async (params: { webResourceId: string }) => {
        const result = await client.get<Record<string, unknown>>(
          `webresourceset(${params.webResourceId})?$select=name,displayname,content,webresourcetype,description`
        );
    
        let decodedContent = "";
        if (result.content) {
          decodedContent = Buffer.from(result.content as string, "base64").toString("utf-8");
        }
    
        return {
          content: [
            {
              type: "text" as const,
              text: `**${result.name}** (${result.displayname})\n\nConteúdo:\n\`\`\`\n${decodedContent}\n\`\`\``,
            },
          ],
        };
      }
    );

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/rafteles2016/mcpDynamics'

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