Skip to main content
Glama

Cadastro de fornecedor

cadastrar_fornecedor

Fornecedores da empresa. O documento é gravado sem máscara (CPF 11 caracteres, CNPJ 14 — o CNPJ novo tem letras); documento repetido é recusado.

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

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

Annotations flag a non-read, non-destructive, non-idempotent write; the description goes far beyond them by disclosing the all-or-nothing transaction ('se um item for recusado, NENHUM é gravado'), duplicate-document and duplicate-name rejection behavior, the response reporting the offending item, and the required user confirmation before writing.

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?

Dense but efficient: each sentence carries either a rule (masking, duplicates, all-or-nothing) or an instruction (batch the whole dictation, confirm before writing). The vague opening line and the some-what repetitive duplicate-name warning cost it the top mark.

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 mutation tool with an output schema present, the description covers the essential behavioral contracts (transactionality, rejection reporting, confirmation flow) so return values needn't be described. Only minor gaps remain, such as what fields are required beyond `razao_social` on insert.

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 real meaning: the 50-item list cap, the batch semantics of `itens`, the `id`-driven insert/edit/deactivate branching, and the unmasked document format. This goes beyond restating the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb+resource (registering company suppliers) and details the CRUD behaviors of the tool, plus the document-normalization rules. The opening 'Fornecedores da empresa' is slightly vague, and it never names which sibling (e.g. consultar_cadastros) it complements, but the operation itself is unmistakable.

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 clearly states the conditions that pick each mode: no `id` inserts, `id` alone edits only supplied fields, `id`+`desativar` deactivates, and it instructs to show the list and confirm before calling. It does not explicitly contrast with sibling registration tools, but the when-to-use conditions are strong.

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