Skip to main content
Glama

Lançamento de execução de ordem de serviço

lancar_execucao_os

Registra a execução de uma ordem de serviço agrícola: área trabalhada, horas, equipamento e operador. Use consultar_ordens_servico para achar a ordem e os talhões dela. A data não pode ser futura.

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
areaYesÁrea executada, em hectares. Ex.: 80.5
dataYesData da execução. Formato dd/mm/aaaa.
horasNoHoras trabalhadas. Ex.: 4.5
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.
hora_fimNoHora de término. Ex.: 12
id_ordemYesOrdem de serviço executada, vinda de consultar_ordens_servico.
id_equipeNoEquipe responsável.
minuto_fimNoMinuto de término. Ex.: 0
observacaoNoObservação livre, se o usuário disser alguma.
hora_inicioNoHora de início. Ex.: 7
id_implementoNoImplemento usado.
id_lancamentoNoIdentificador de um lançamento já existente, para ALTERAR. Omita para criar um novo — é o caso normal.
leitura_finalNoHorímetro ou hodômetro no fim.
minuto_inicioNoMinuto de início. Ex.: 30
id_equipamentoNoEquipamento usado.
id_funcionarioNoOperador.
id_ordem_talhaoNoQuando a execução é de um talhão só: o vínculo ordem×talhão.
leitura_inicialNoHorímetro ou hodômetro no início.
ids_talhoes_agrupadosNoQuando são vários talhões de uma vez: os vínculos separados por vírgula.
nomes_talhoes_agrupadosNoNomes dos talhões agrupados, separados por vírgula. Ex.: "TH 01,TH 02"

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.1/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-idempotent write with no destructive hint. The description adds value beyond them: it names the persistence target ('GRAVA no upCampo'), states a validation constraint on a required field, and mandates summarizing and confirming with the user before calling plus reporting the result afterward.

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?

Four short sentences that are front-loaded: purpose first, then the lookup prerequisite, then the constraint, then the write/confirm protocol. No filler, though the 'GRAVA no upCampo' line and the post-write reporting instruction sit somewhat disjointedly after the data constraint.

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 20-parameter write tool with annotations and an output schema, the description covers the operational essentials (what is captured, the lookup prerequisite, the date constraint, the confirmation protocol). It does not surface that supplying id_lancamento switches the call to an update of an existing lançamento, which is the main residual 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% across 20 parameters, so the schema already documents each field, including the tricky id_lancamento update mode and the grouped-talhão variants. The description only gestures at the main fields (área, horas, equipamento, operador) and adds no syntax or format detail beyond the schema, 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 (Registra) and resource (execução de uma ordem de serviço agrícola), then enumerates the core data captured (área, horas, equipamento, operador). The framing as 'execução' rather than the order itself cleanly separates it from the sibling lancar_ordem_servico, and it names consultar_ordens_servico as the lookup path.

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?

Explicitly routes the agent to consultar_ordens_servico to obtain the ordem and its talhões, and states a hard precondition ('A data não pode ser futura'). It also prescribes a confirm-before-write workflow. What is missing is an explicit when-not-to-use note (e.g. the alter-vs-create distinction).

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