Skip to main content
Glama
hlgurgel

ws-claro-gerencial-mcp

by hlgurgel

enviar_registros

Submit XML data to Claro Gerencial for inserting, updating, or deleting records. Get a ticket to track import status.

Instructions

Envia registros em XML para importação no Claro Gerencial (WebService de Input). Use esta ferramenta para inserir, alterar ou excluir registros no sistema.

O XML deve seguir o schema XSD da entidade (use 'obter_schema_xml' para validar). Cada registro no XML deve conter o campo DbAcao: I (Inclusão), A (Alteração), E (Exclusão).

Parâmetros:

  • entidade: slug da entidade de destino.

  • xml: string contendo o XML completo a ser enviado.

  • usuario/senha/ambiente: opcionais.

Retorna um ticket para acompanhar o status via 'obter_status'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xmlYesConteúdo XML completo a ser enviado, conforme schema XSD da entidade.
senhaNoSenha de acesso (opcional).
usuarioNoUsuário de acesso (opcional).
ambienteNoAmbiente: 'homologacao' ou 'producao' (opcional).
entidadeYesSlug da entidade para envio (ex: 'clientes', 'pedidos').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses that the tool performs mutations (insert/update/delete), requires XML conforming to an XSD schema, and returns a ticket for async tracking. However, it does not disclose side effects, idempotency, error behavior, or whether the operation is synchronous or asynchronous beyond the ticket return.

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 well-structured with a clear opening sentence, a short XML guidance paragraph, a parameter list, and a return-value note. It is slightly longer than necessary but every section earns its place; the parameter list partially duplicates 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?

For a mutation tool with no annotations and no output schema, the description covers the essential context: what the tool does, how to structure the XML, how to validate it, and how to track the result. It lacks explicit error-handling or rollback behavior, but the ticket-based flow is clearly communicated.

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 five parameters. The description adds a bit of context (e.g., DbAcao field semantics, example slugs) but does not significantly go beyond the schema. Baseline 3 is appropriate.

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 states a specific verb ('Envia'), a resource ('registros em XML'), and a destination ('Claro Gerencial WebService de Input'). It also explicitly lists the three operations it supports (inserir, alterar, excluir), which distinguishes it from sibling tools like obter_registros (read) and obter_status (status polling).

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?

The description gives clear context: use it to insert, update, or delete records, and mentions the DbAcao field for operation type. It also references obter_schema_xml for validation and obter_status for tracking, but it does not explicitly state when NOT to use it (e.g., for reading data, use obter_registros).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.