Skip to main content
Glama

Cadastro de equipamento

cadastrar_equipamento

Máquinas, veículos e implementos da fazenda. Máquina nasce com horímetro e pronta para abastecimento e ordem de serviço; implemento (plantadeira, grade, pulverizador de arrasto) nasce sem medidor e fora do abastecimento. Placa repetida na fazenda é recusada. Dois equipamentos com o mesmo nome precisam de placa ou código diferentes.

Recebe uma LISTA (até 50 por chamada): mande tudo o que o usuário ditou de uma vez. Sem id inclui; com id altera só os campos informados; com id e desativar desativa. É tudo ou nada: se um item for recusado, NENHUM é gravado, e a resposta diz qual item e por quê. Nome repetido é recusado com o id do que já existe — pergunte se é para alterar.

GRAVA no upCampo. Mostre ao usuário a lista do que será gravado e confirme antes de chamar.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itensYesOs itens a gravar.
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.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
avisosNo
fazendaYes
gravadoYes
retornoYes
mensagemYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

The description adds substantial behavior beyond the annotations: all-or-nothing transaction (if one item is rejected, none are saved), explicit rejection reasons (duplicate plate, duplicate name with existing id), default medidor behavior per equipment type, and the requirement to confirm with the user before writing to upCampo. These details are not derivable from the annotations alone. No contradiction with readOnlyHint=false, idempotentHint=false, or destructiveHint=false.

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?

The description is information-dense and front-loads the core distinction between machines and implements. It uses three short paragraphs for rules, list semantics, and required confirmation. There is minor repetition (duplicate-name rule appears twice), but every sentence carries operational value.

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

Completeness5/5

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

For a batch registration tool with multiple fields, a transaction constraint, and an output schema, the description covers the critical behaviors an agent needs: default field values, conflict handling, all-or-nothing semantics, and the required user confirmation step. The output schema exists, so return-value explanation is appropriately omitted.

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 description coverage is 100%, so baseline is 3. The description goes further by explaining batch semantics for the 'itens' array (up to 50 per call, send all at once) and the combined effect of id and desativar, which enriches the parameter meaning beyond the individual schema field descriptions.

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 names the resource precisely (máquinas, veículos, implementos) and distinguishes it from siblings by contrasting machines (with horímetro, abastecimento) and implements (with no meter, outside fueling). It also clarifies registration semantics like plate uniqueness per farm, making it easy to tell apart from cadastrar_tipo_equipamento.

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 gives clear operational context: send the whole list at once, use id to alter, id+desativar to deactivate, and 'mostre ao usuário a lista... e confirme antes de chamar.' It also handles the duplicate-name conflict by telling the agent to ask whether to alter. However, it does not explicitly name an alternative tool (e.g., consultar_cadastros to check existing records).

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