Skip to main content
Glama
rafteles2016

MCP Dynamics CRM Server

by rafteles2016

dynamics_delete_solution

Remove unmanaged solutions from Dynamics CRM to clean up development environments and manage solution lifecycle.

Instructions

Remove uma solução unmanaged do Dynamics CRM

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
solutionUniqueNameYesNome único da solução a remover

Implementation Reference

  • The handler for 'dynamics_delete_solution' which finds the solution ID by unique name and then calls the client to remove it.
    server.tool(
      "dynamics_delete_solution",
      "Remove uma solução unmanaged do Dynamics CRM",
      DeleteSolutionSchema.shape,
      async (params: z.infer<typeof DeleteSolutionSchema>) => {
        const solutions = await client.list("solutions", {
          select: ["solutionid"],
          filter: `uniquename eq '${params.solutionUniqueName}'`,
          top: 1,
        });
    
        if (solutions.value.length === 0) {
          return {
            content: [{ type: "text" as const, text: `Solução '${params.solutionUniqueName}' não encontrada.` }],
          };
        }
    
        const solutionId = (solutions.value[0] as Record<string, unknown>).solutionid as string;
        await client.remove("solutions", solutionId);
    
        return {
          content: [
            {
              type: "text" as const,
              text: `Solução ${params.solutionUniqueName} removida com sucesso!`,
            },
          ],
        };
      }
  • The Zod schema definition for the inputs of the delete solution tool.
    export const DeleteSolutionSchema = z.object({
      solutionUniqueName: z.string().describe("Nome único da solução a remover"),
    });

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