Skip to main content
Glama

contaazul_sale_write_create

Cria ou atualiza venda. data é o payload da venda em JSON. action=create (POST /venda) — OBRIGATÓRIOS: id_cliente (UUID, via contaazul_list_people), situacao (EM_ANDAMENTO ou APROVADO), data_venda (AAAA-MM-DD), itens[] e condicao_pagamento; numero é obrigatório na API mas, se omitido, usamos o próximo número livre da empresa. action=update (PUT /venda/{id}, substitui a venda) — passe id e os mesmos campos do create; versao (inteiro, controle de concorrência) é obrigatório na API e, se omitido, é lido da venda atual, assim como numero, id_cliente e situacao. situacao de escrita: EM_ANDAMENTO, APROVADO, FATURADO, CANCELADO (valores da busca como approved/invoiced são convertidos).

[Flattened action: create]

Bulk support: accepts ids for batched execution.

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": {
      "data": "<data>"
    },
    "name": "contaazul_sale_write_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
idsNo
dataYes
accountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / account / description
      Removed value: -"Quando o install tem mais de uma empresa Conta Azul: company_id, label, ou parcial. Ver contaazul_list_accounts."
    • removedInput schema / properties / ids / description
      Removed value: -"Bulk mode: multiple values for id"
  2. First observed

TDQS

C2.4/5.0
Behavior1/5

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

The description includes update behavior that 'substitui a venda' (replaces the sale), which is destructive, but annotations declare destructiveHint=false. This is a direct contradiction; additionally, the description claims the tool can update, further conflicting with the tool's create-only scope.

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

Conciseness3/5

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

The description is well-structured with action=create and action=update sections, but for a create-only tool the extensive update details are extraneous and reduce conciseness. The core create information is front-loaded but diluted by irrelevant content.

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 mutation tool with annotations and no output schema, the description covers required create fields and fallback behavior, but it misses explanation of the `account` parameter and the `ids` bulk mechanism. The annotation contradiction further undermines completeness.

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 0%, but the description compensates by explaining the required fields within the `data` payload (id_cliente, situacao, data_venda, itens, condicao_pagamento, numero fallback). However, it omits meaning for the other top-level parameters `id`, `ids` (bulk), and `account`, leaving significant gaps.

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

Purpose3/5

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

The description says 'Cria ou atualiza venda' and details both create and update actions, but the tool is specifically for creation (flattened action: create). While it states the create endpoint and required fields, the dual-action framing blurs its distinct purpose versus the sibling contaazul_sale_write_update.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives like contaazul_sale_write_update. The description explains mechanics but does not state when this tool is appropriate or when to choose another; the agent must infer from the action hint.

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.