Skip to main content
Glama

explicar_erro

Explains tax calculator error codes (e.g., REG-011) by returning their meaning and cause, so users can identify and resolve calculation failures.

Instructions

Descreve um código de erro da calculadora (ex.: REG-011).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "codigo": "<codigo>"
    },
    "name": "explicar_erro"
  }
}

Input Schema

NameRequiredDescriptionDefault
codigoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. 'Descreve' implies a read-only lookup, but nothing is said about unknown/invalid codes, whether the code is case-sensitive, or what form the explanation takes — significant gaps for a tool with zero annotation coverage.

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?

One short sentence, front-loaded with the verb and resource, with the example adding real value rather than padding. Nothing extraneous, though there is very little content overall.

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

Completeness3/5

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

For a simple one-parameter lookup with no output schema, the definition is minimally adequate: it conveys what goes in and roughly what comes out. It stops short of describing the return content or failure behavior, which an agent would need to use it confidently.

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 coverage is 0% — the single 'codigo' property has only a title and no description. The description partly compensates by showing the expected code shape ('ex.: REG-011'), but it does not say whether the prefix matters or whether codes are validated.

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 ('Descreve') and resource ('código de erro da calculadora') and gives a concrete example code (REG-011). An agent can distinguish this lookup tool from the sibling calculation and XML tools without opening the schema, though it never explicitly names a contrasting sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no precondition (e.g., call after calcular_tributos returns a failure), and no stated alternative. The only hint is the inline example of an input code, which is usage-adjacent but not guidance.

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