Skip to main content
Glama
rafteles2016

MCP Dynamics CRM Server

by rafteles2016

dynamics_delete_column

Remove a column from a Dynamics CRM table to modify database structure or clean up unused fields. Specify entity and attribute names to delete the column.

Instructions

Remove uma coluna de uma tabela

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entityLogicalNameYesNome lógico da entidade
attributeLogicalNameYesNome lógico do atributo

Implementation Reference

  • Handler for dynamics_delete_column which deletes a column from a Dynamics table using the Dataverse client.
    // 10. Delete Column
    server.tool(
      "dynamics_delete_column",
      "Remove uma coluna de uma tabela",
      DeleteColumnSchema.shape,
      async (params: z.infer<typeof DeleteColumnSchema>) => {
        await client.delete(
          `EntityDefinitions(LogicalName='${params.entityLogicalName}')/Attributes(LogicalName='${params.attributeLogicalName}')`
        );
    
        return {
          content: [
            {
              type: "text" as const,
              text: `Coluna ${params.attributeLogicalName} removida de ${params.entityLogicalName} com sucesso!`,
            },
          ],
        };
      }
    );
  • Input schema validation for dynamics_delete_column.
    export const DeleteColumnSchema = z.object({
      entityLogicalName: z.string().describe("Nome lógico da entidade"),
      attributeLogicalName: z.string().describe("Nome lógico do atributo"),
    });

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