Skip to main content
Glama

glosa_explain

Explica um código da Tabela 38 da ANS. Quando usar: ao interpretar uma glosa recebida. Quando não usar: para validar ou corrigir o lote.

Input Schema

NameRequiredDescriptionDefault
codigoYes

Output Schema

NameRequiredDescriptionDefault
fonteYes
grupoYes
codigoYes
descricaoYes
orientacaoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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 full behavioral burden. 'Explica' plus the interpretation framing implies a read-only lookup, and the low-risk shape is inferable, but nothing states side effects, permissions, or lookup scope beyond the table reference.

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?

Three terse clauses, front-loaded with the purpose and then the use/avoid conditions. Every sentence carries signal, though the telegraphic 'Quando usar/Quando não usar' style is slightly clipped.

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?

An output schema exists, so return values need not be described. For a single required parameter read tool, the description covers purpose and routing adequately; only the absence of any behavioral note (given no annotations) leaves a minor 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 0%, and the schema only declares a 4-digit string pattern. The description compensates partially by identifying the code as a Table 38 ANS code, giving domain meaning the schema lacks, but it adds no format, examples, or error-handling detail.

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?

States a specific verb and resource: explains a code from ANS Table 38. The usage line ('ao interpretar uma glosa recebida') further scopes it away from batch validation tools like tiss_validate, though no sibling is named explicitly.

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 gives both when to use ('ao interpretar uma glosa recebida') and when not to use ('para validar ou corrigir o lote'). That negation implicitly routes the agent to tiss_validate/tiss_apply_fixes, but those alternatives are not named, leaving some inference.

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.