Skip to main content
Glama

Lançamento de abastecimento

lancar_abastecimento

Registra um abastecimento de equipamento. Use consultar_frota para achar o equipamento. Interno (bomba da fazenda): informe id_bomba. Externo (posto de rua): informe descrição do posto, id_produto do combustível e preço por litro.

GRAVA no upCampo. Resuma ao usuário o que será lançado e confirme com ele antes de chamar. Depois de gravado, informe o que foi registrado.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesData do abastecimento. Formato dd/mm/aaaa.
horaYesHora, 0 a 23.
tipoYesInterno: bomba da fazenda. Externo: posto de rua.
litrosYesLitros abastecidos. Ex.: 45.5
minutoYesMinuto, 0 a 59.
ticketNoNúmero do ticket, se houver.
fazendaNoNome da fazenda. Omita para usar a fazenda corrente do usuário — é o padrão, e é o que o usuário espera quando não cita nenhuma. Informe apenas quando ele nomear outra fazenda. Cada consulta trata de uma fazenda por vez.
id_bombaNoSó para tipo Interno: a bomba usada.
horimetroNoLeitura do horímetro ou hodômetro, se informada.
id_produtoNoSó para tipo Externo: o combustível.
observacaoNoObservação livre, se o usuário disser alguma.
preco_litroNoSó para tipo Externo: preço por litro. Ex.: 5.89
id_lancamentoNoIdentificador de um lançamento já existente, para ALTERAR. Omita para criar um novo — é o caso normal.
id_equipamentoYesEquipamento abastecido, vindo de consultar_frota.
id_funcionarioNoOperador, se informado.
descricao_postoNoSó para tipo Externo: nome do posto.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
fazendaYes
lancadoYes
retornoYes
mensagemYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / fazenda / description
      Previous value: -"Nome da fazenda. Omita para usar a fazenda corrente do usuario — e o padrao, e e o que o usuario espera quando nao cita nenhuma. Informe apenas quando ele nomear outra fazenda. Cada consulta trata de uma fazenda por vez."New value: +"Nome da fazenda. Omita para usar a fazenda corrente do usuário — é o padrão, e é o que o usuário espera quando não cita nenhuma. Informe apenas quando ele nomear outra fazenda. Cada consulta trata de uma fazenda por vez."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false, so the write/non-idempotent profile is known. The description adds genuine value beyond that: it names the write target ('GRAVA no upCampo') and mandates a confirm-before-call and report-after-write protocol. It does not mention permission/auth requirements, keeping it short of a 5.

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?

Front-loaded with the core verb and resource, then moves efficiently into prerequisite tool, conditional branches, and the confirmation protocol. The lines are short and purposeful, though the interno/externo field lists partially duplicate 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?

With an output schema present, return values need not be described, and the 100% schema coverage handles parameter detail. The description covers the main create workflow and confirmation loop well; the alter-existing path via id_lancamento is documented only in the schema, a minor gap.

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 schema already documents all 16 parameters including the Interno/Externo conditionals on id_bomba, id_produto, descricao_posto, and preco_litro. The description restates those same conditional requirements, adding emphasis but little new semantic detail, so the baseline 3 applies.

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?

States a specific verb+resource ('Registra um abastecimento de equipamento'), which clearly places it among the lancar_* write tools and disambiguates it from the consultar_* readers. An agent can tell immediately that this creates a fueling record rather than querying one.

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?

Gives explicit branching guidance: use consultar_frota first to find the equipment, then choose Interno (id_bomba) or Externo (descricao_posto, id_produto, preco_litro) with the required fields for each. It also prescribes the interaction workflow (summarize and confirm before calling, report after writing), leaving little to inference.

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