Skip to main content
Glama
ericluciano

sienge

by ericluciano

criar_titulo

Create accounts payable entries in Sienge after user confirmation, with automatic duplicate checking by creditor and document number within 60 days.

Instructions

Lança um título no contas a pagar do Sienge (POST /bills). Exige confirmado:true — só chame depois de mostrar o resumo e receber o OK do usuário. Antes de criar, procura duplicidade (mesmo credor + número do documento em ±60 dias) e recusa se achar, salvo ignorar_duplicidade:true. Datas em DD/MM/AAAA ou AAAA-MM-DD; valores como na nota (1.234,56).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descontoNo
parcelasNo
credor_idYes
data_baseNoPadrão: igual à emissão
documentoNoCódigo do tipo de documento. Padrão: SIENGE_DOCUMENTO_PADRAO
confirmadoNotrue somente após o usuário confirmar o resumo no chat
empresa_idNoPadrão: SIENGE_EMPRESA_PADRAO
observacaoNoItens principais, forma de pagamento, quem comprou...
valor_totalYes
apropriacoesYes
data_emissaoYes
indexador_idNoPadrão: SIENGE_INDEXADOR_PADRAO
departamentosNo
data_vencimentoNoPadrão: igual à emissão (despesa já paga)
data_competenciaNoPadrão: igual à emissão
numero_documentoYesNúmero da nota/cupom/recibo
ignorar_duplicidadeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well. It discloses the confirmation requirement, the automatic duplicate check (same creditor + document number within ±60 days), the refusal behavior, and the accepted date/number formats. This goes well beyond the schema and gives the agent critical operational context.

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

Conciseness5/5

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

The description is compact and front-loaded: the core action comes first, followed by the confirmation gate, duplicate policy, and formatting rules. Every sentence adds essential operational information and there is no filler or repetition of the schema.

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

Completeness4/5

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

For a complex creation tool with no output schema or annotations, the description provides the key context needed to invoke it correctly: preconditions, duplicate handling, and value formats. It could additionally describe the return value or post-creation outcome, but the information critical to a correct call is present.

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

Parameters4/5

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

Schema coverage is only 53%, so the description must compensate. It adds meaningful global guidance for date parameters (DD/MM/AAAA or AAAA-MM-DD), numeric values (1.234,56), and explains the behavior of ignorar_duplicidade, which the schema does not describe. It does not individually document every parameter, but the high-leverage formatting rules cover the most error-prone ones.

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 states a specific action ('Lança um título'), the resource ('contas a pagar do Sienge'), and the endpoint ('POST /bills'). This makes the tool's purpose immediately clear and distinguishes it from lookup-oriented siblings like buscar_titulos and consultar_titulo.

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

Usage Guidelines4/5

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

It explicitly states when the tool may be called: only after showing the summary and receiving user confirmation, and with confirmado:true. It also explains when duplicate refusal can be bypassed with ignorar_duplicidade. However, it does not explicitly name alternatives or state when not to use this tool versus related creation/lookup tools.

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