Skip to main content
Glama
mcp-hacienda-cr

mcp-hacienda-cr

by jmnzcn

Consultar contribuyente

consultar_contribuyente
Read-only

Retrieves a Costa Rican taxpayer's tax status from Hacienda using a cédula, DIMEX, or NITE: name, regime, delinquency, and economic activities. Verify before issuing electronic invoices.

Instructions

Situación tributaria de una persona o empresa en Hacienda a partir de su cédula física, jurídica, DIMEX o NITE: nombre, régimen, estado, si está morosa u omisa y sus actividades económicas. Útil antes de emitir una factura electrónica.

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
identificacionYesNúmero de identificación, con o sin guiones. Ej: "3-101-000046" o "112340567".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description is consistent with that, reinforcing that the source is the external Hacienda registry. It adds useful disclosure beyond the annotations by listing exactly which fields come back (régimen, estado, morosa/omisa, actividades económicas). It doesn't cover latency, rate limits, or what happens when the identification isn't found.

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?

Two sentences, both load-bearing: the first defines the resource and its return payload, the second gives the usage context. No redundancy or 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?

With a single required parameter, no output schema and lean annotations, the description carries the burden well by enumerating the returned fields and the accepted identifier types. Missing only edge-case behavior (invalid or not-found identification, response shape detail).

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% and the schema already explains the format with examples, so the baseline would be 3. The description adds genuine meaning by enumerating which identifier types are accepted (cédula física, jurídica, DIMEX, NITE), which the schema does not state.

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?

Names a specific verb (consultar) and a precise resource: the tax situation of a person or company in Hacienda, with an explicit enumeration of the data returned (nombre, régimen, estado, morosidad, actividades económicas). This is clearly distinct from the sibling tools (tipo_de_cambio, buscar_cabys, obtener_cabys, consultar_exoneracion), which operate on exchange rates, CABYS codes and exemptions.

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?

"Útil antes de emitir una factura electrónica" gives a concrete usage context, positioning it as a pre-invoicing verification step. However, it doesn't state when NOT to use it or point to alternatives (e.g., consultar_exoneracion for exemption status), so there are no explicit exclusions.

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