remove_payable_allocation
Referência da tool remove_payable_allocation do MCP Server do bitERP (Contas a pagar).
Remove Payable Allocation · Contas a pagar
| Somente leitura | Destrutiva | Idempotente | Mundo aberto |
|---|---|---|---|
| Não | Sim | Sim | Não |
Descrição
A descrição abaixo é a que o servidor publica, em inglês, e é o texto que o agente lê para decidir quando usar a tool.
Removes one allocation from a payable record and recalculates its internal status. Not for credit card statements (type card_statement): their payment is unlinked only in the bitERP web app, and this tool rejects it with CARD_STATEMENT_UNDO_USE_STATEMENT_FLOW.
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
tenant | string | Sim | Defines which tenant will have data read or changed. Use list_tenants first and prefer the returned tenant slug. Writes are permanent, so when the user has more than one tenant you must confirm the tenant before any write and never assume or reuse a previous choice without confirmation. UUID is accepted only when already known safely. |
payable_id | string (UUID) | Sim | The payable ID |
allocation_id | string (UUID) | Sim | The allocation ID to remove |
Resposta
O structuredContent da resposta traz os campos abaixo (até dois níveis; o schema completo está no outputSchema publicado no tools/list).
| Campo | Tipo | Descrição |
|---|---|---|
removed | boolean | — |
payable_id | string (UUID) | — |
allocation_id | string (UUID) | — |
_tenant | object | — |
_tenant.id | string (UUID) | — |
_tenant.slug | string | — |
_tenant.company_name | string | — |
Exemplo de chamada
Requisição tools/call com os parâmetros obrigatórios. Os valores são ilustrativos: troque minha-empresa pelo tenant devolvido por list_tenants e cada <...> por um valor real.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "remove_payable_allocation",
"arguments": {
"tenant": "minha-empresa",
"payable_id": "<uuid>",
"allocation_id": "<uuid>"
}
}
}
