Skip to main content
Glama
JoseAlmeida-Ploomes

Ploomes MCP Server

salvar_automacao

Create or update a CRM automation (funnel or general) by specifying entity ID, trigger ID, and optional actions, stage, or schedule.

Instructions

    Criar ou atualizar uma automação (de funil ou geral) no Ploomes CRM.

    Passe o ID para atualizar uma automação existente.

    Observações:
        1. entidade_id: EntityId da entidade base (confirmado via buscar_schema
           em conta real: 1 = Cliente/Contacts, 2 = Negócio/Deals, 3 = Lead,
           4 = Venda/Orders, 7 = Proposta/Quotes, 10 = Produto, 12 = Tarefa,
           24 = Usuário, 36 = Registro de Interação, 66 = Documento). Use
           buscar_schema/buscar_campos_entidades para confirmar na conta
           específica — esses números podem variar por conta.
        2. gatilho_id (TriggerId): obtenha com buscar_gatilhos_acoes_automacao.
        3. etapa_id (TriggerDealStageId): obrigatório só para automação de funil
           (gatilho vinculado a uma etapa específica). Use buscar_pipeline para
           obter o StageId.
        4. intervalo_unidade_id / intervalo_valor / data_inicio_repeticao: só
           usados quando o gatilho for "periodicamente".
        5. Uma automação tem um único gatilho, mas pode ter várias ações
           executadas em sequência — a ordem da lista `acoes` é a ordem de
           execução.
        6. Cada item de `acoes` é um dicionário com os campos nativos de
           AutomationAction. O campo obrigatório é ActionId (use
           buscar_gatilhos_acoes_automacao). Os demais campos dependem do tipo
           de ação:
           - Editar campo (valor fixo): {"ActionId": X, "FieldKey": "deal_title", "StringValue": "Novo título"}
           - Editar campo (puxar de campo vinculado via field-path): {"ActionId": X, "FieldKey": "...", "FieldPathId": 123}
           - Enviar e-mail: {"ActionId": X, "EmailTemplateId": 123, "RecipientsEmailAddress": "a@b.com", "EmailSenderTypeId": 1}
           - Criar tarefa: {"ActionId": X, "UserValueId": 456, "TaskDaysFromNow": 2}
           - Finalizar negócio como perdido: {"ActionId": X, "LossReasonId": 789}
           - Gerar documento: {"ActionId": X, "ShouldGenerateDocument": true}
           Confirme os IDs e a combinação exata de campos testando em uma conta
           de sandbox antes de aplicar em produção — a documentação interna da
           API não audita com certeza todos os campos aceitos por tipo de ação.
        7. Ao editar (passando `id`), reenviar `acoes` substitui a lista de ações
           anterior — inclua todas as ações desejadas, não apenas as novas.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
acoesNo
etapa_idNo
filtro_idNo
gatilho_idYes
habilitadaNo
entidade_idYes
intervalo_valorNo
intervalo_unidade_idNo
data_inicio_repeticaoNo
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Without annotations, the description carries full burden. It discloses that the tool performs writes (create/update), that updating replaces actions, and that actions have varying fields. It also notes lack of official documentation for action types. However, it doesn't explicitly mention potential side effects or error conditions (e.g., what happens if IDs are invalid). Still very transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is lengthy but well-structured with a summary line, then numbered notes. Every sentence earns its place, though some details (like the full list of entity IDs) could be in a separate reference. Still, for a complex tool with 10 params and actions, this level of detail is appropriate.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations, no output schema, and 10 parameters, the description is remarkably complete. It covers all parameters, their dependencies, how to obtain required IDs from other tools, and even provides action examples. It also warns about uncertainty in action field combinations. Nothing major is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 0% description coverage, but the description explains all 10 parameters in detail via numbered notes. For example, entidade_id lists possible values with mapping, gatilho_id refers to another tool, etapa_id conditionally required, and acoes provides examples and notes about behavior. This adds immense meaning beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with 'Criar ou atualizar uma automação (de funil ou geral) no Ploomes CRM,' which clearly states the action (create/update) and resource (automation). It distinguishes from siblings like buscar_automacoes (read) and excluir_automacao (delete).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when-to-use guidance: pass ID to update, omit for create. Details prerequisites for each parameter (e.g., entidade_id lookup, gatilho_id from buscar_gatilhos_acoes_automacao, etapa_id from buscar_pipeline). Warns that updating replaces the actions list, and advises testing in sandbox. No other tool gives such thorough guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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/JoseAlmeida-Ploomes/ploomes-mcp'

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