Skip to main content
Glama

Plantio da safra

cadastrar_plantio

O que está plantado em cada talhão na safra: sem isso não há ordem de serviço, colheita nem produtividade. Um por talhão e safra, com UMA variedade (talhão com várias variedades é pelo portal). Para trocar safra, talhão ou cultura, desative e inclua de novo.

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.8/5.0
Behavior5/5

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

Annotations only say non-read-only, non-idempotent, non-destructive; the description adds the real behavioral contract: batch of up to 50 items, upsert-by-id semantics (no id = insert, id = partial update, id + desativar = soft delete keeping history), all-or-nothing transactionality, duplicate rejection with the existing id, and the target system (upCampo). This is exactly the beyond-annotations disclosure the dimension asks for.

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 purpose and the cardinality rule, then batch semantics, then the write/confirm instruction; every paragraph carries distinct operational information. It is on the long side for a single tool, but there is little filler and no repetition.

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?

An output schema exists, so return values need not be restated, and the description still covers the one response detail that matters operationally (which item failed and why, on an all-or-nothing write). For a batch mutation with complex conditional semantics, nothing an agent needs to call it correctly is missing.

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 100%, so the baseline is 3, but the description adds aggregate-level meaning the per-field descriptions do not carry: the list is a single transactional batch, items are dispatched all at once, and the id/desativar combination drives insert-vs-update-vs-deactivate. That interplay is documented in prose rather than only in 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?

States a specific verb and resource in context: it records what is planted per talhão per safra, and ties the record to downstream artifacts (ordem de serviço, colheita, produtividade). That framing distinguishes it from cadastrar_safra, cadastrar_talhao and cadastrar_cultura without needing to name them.

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?

Explicit routing rules: one variety per talhão/safra, multiple varieties must go through the portal, and changing safra/talhão/cultura requires deactivating and re-including. It also tells the agent to confirm with the user before calling, which is an actionable usage condition rather than a generic disclaimer.

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