Skip to main content
Glama

Consultar un contribuyente en Hacienda

consultar_contribuyente
Read-onlyIdempotent

Consulta en la API pública del Ministerio de Hacienda (api.hacienda.go.cr/fe/ae) el nombre, régimen, situación tributaria (inscrito, moroso, omiso) y actividades económicas de una identificación. Úsela para revisar el código de actividad de una factura o si un emisor o receptor aparece inscrito. Los resultados se guardan en memoria hasta 12 horas.

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": {
      "identificacion": "<identificacion>"
    },
    "name": "consultar_contribuyente"
  }
}

Input Schema

NameRequiredDescriptionDefault
identificacionYesCédula física, jurídica, DIMEX o NITE, de 9 a 12 dígitos.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, openWorldHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds genuinely new behavioral information: it hits a specific public external API (api.hacienda.go.cr/fe/ae), which explains the open-world latency, and that results are cached in memory for up to 12 hours, which tells the agent that returned data can be stale.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences: what is retrieved, when to use it, and how caching affects freshness. The purpose and returned fields come first, and no sentence is filler.

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 single-parameter read tool without an output schema, the description lists the returned fields (nombre, régimen, situación tributaria, actividades económicas), which is the key completeness need. It does not say what happens when the identification is not found or when the external API fails, which leaves a modest 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 100%, and the schema already enumerates the accepted document types (cédula física, jurídica, DIMEX, NITE) and length. The description only refers generically to "una identificación", adding no syntax or format meaning beyond the schema, so the baseline of 3 applies.

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 opens with a specific verb and resource in Spanish ("Consulta ... el nombre, régimen, situación tributaria ... y actividades económicas de una identificación") and names the backing endpoint, so an agent knows exactly which data it returns. It does not explicitly name or contrast a sibling tool such as validar_cedula or leer_comprobante, so the differentiation is implied by the data fields rather than stated.

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?

Concrete usage contexts are given: checking the activity code on an invoice, or whether an issuer or receiver is registered. No when-not-to-use condition or named alternative is provided, so the agent has to infer when another tool (for example, cédula validation alone) is the better choice.

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