Skip to main content
Glama

Update deal

update_deal
DestructiveIdempotent

Atualiza dados de uma negociação: valor do negócio (setup e mensalidade separados, ou itens com recorrência), previsão de fechamento, motivo da perda, etapa do pipeline, status ou adiciona uma anotação. Use para mover oportunidades pelo funil de vendas.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "contact_id": "<contact_id>"
    },
    "name": "update_deal"
  }
}

Input Schema

NameRequiredDescriptionDefault
funilNoFunil da etapa (id ou nome, ver list_pipelines). Só é preciso quando o nome da etapa existe em mais de um funil.
itensNoLista completa de itens (substitui): [{ nome, quantidade, preco, recorrencia: unico|mensal|anual, desconto?, desconto_tipo?: valor|percentual, product_id? }]. Setup e mensal saem da soma (anual ÷ 12)
notesNoAnotação sobre a atualização, registrada na linha do tempo (opcional)
statusNoNovo status do contato (opcional)
companyNoEmpresa do contato (opcional)
note_typeNoTipo da anotação (padrão: note)
contact_idYesID do contato/negociação a atualizar
deal_valueNoValor antigo (um número só). Prefira valor_unico e valor_mensal
valor_unicoNoSetup/implantação, pago uma vez (R$). Ignorado se vier itens
motivo_perdaNoPor que perdeu (ex.: Preço, Sem resposta)
valor_mensalNoMensalidade (R$/mês). Ignorado se vier itens
pipeline_stage_nameNoNome exato da nova etapa do pipeline (opcional)
previsao_fechamentoNoAAAA-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / deal_value / description
      Previous value: -"Novo valor estimado do negócio em R$ (opcional)"New value: +"Valor antigo (um número só). Prefira valor_unico e valor_mensal"
    • addedInput schema / properties / itens
      Added value: +{
      +  "description": "Lista completa de itens (substitui): [{ nome, quantidade, preco, recorrencia: unico|mensal|anual, desconto?, desconto_tipo?: valor|percentual, product_id? }]. Setup e mensal saem da soma (anual ÷ 12)",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / motivo_perda
      Added value: +{
      +  "description": "Por que perdeu (ex.: Preço, Sem resposta)",
      +  "type": "string"
      +}
    • addedInput schema / properties / previsao_fechamento
      Added value: +{
      +  "description": "AAAA-MM-DD",
      +  "type": "string"
      +}
    • addedInput schema / properties / valor_mensal
      Added value: +{
      +  "description": "Mensalidade (R$/mês). Ignorado se vier itens",
      +  "type": "number"
      +}
    • addedInput schema / properties / valor_unico
      Added value: +{
      +  "description": "Setup/implantação, pago uma vez (R$). Ignorado se vier itens",
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / funil
      Added value: +{
      +  "description": "Funil da etapa (id ou nome, ver list_pipelines). Só é preciso quando o nome da etapa existe em mais de um funil.",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds the meaningful either/or between separate setup/monthly values and recurring items, but does not itself state that item lists replace existing items or that omitted fields are left untouched, leaving mutation semantics mostly to the schema.

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?

Two sentences, front-loaded with the verb and the resource, then a field enumeration, then the usage cue. The dense parenthetical enumeration is slightly heavy but every clause carries information and nothing is repeated.

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

Completeness3/5

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

For a 13-parameter destructive mutation with no output schema, the description covers the headline fields but omits company, note_type, and the funil disambiguation, and says nothing about partial-update behavior or error conditions. Adequate, but an agent could still be surprised by side effects.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description's phrase "setup e mensalidade separados, ou itens com recorrência" reinforces the mutual exclusivity of the two valuation modes, which is genuinely helpful, but it adds no format, unit, or precedence detail beyond the schema.

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

Purpose4/5

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

The description opens with a specific verb and resource ("Atualiza dados de uma negociação") and enumerates the updatable facets: deal value split into setup and monthly, close date, loss reason, pipeline stage, status, or a note. That is clearly distinguishable from create_deal, though it never names the sibling explicitly.

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

Usage Guidelines3/5

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

The final sentence ("Use para mover oportunidades pelo funil de vendas") gives a usage context, but it is narrower than the tool's actual scope and offers no when-not guidance or alternatives. An agent must infer from the field list that this is also the tool for value, loss reason, and note updates.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources