Skip to main content
Glama

Buscar un código CABYS

buscar_cabys
Read-onlyIdempotent

Busca en el catálogo CABYS que publica Hacienda (api.hacienda.go.cr/fe/cabys) por código de 13 dígitos o por descripción, y devuelve el código, la descripción y el porcentaje de IVA asociado. Úsela cuando el usuario necesite el código CABYS de un producto o servicio, o quiera confirmar el de una línea de factura.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "buscar_cabys"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoMáximo de resultados (1 a 10, por defecto 5).
textoNoDescripción del producto o servicio, por ejemplo "servicios de contabilidad".
codigoNoCódigo CABYS de 13 dígitos.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds value beyond that by naming the upstream source (api.hacienda.go.cr/fe/cabys) and the exact shape of the returned data, which the annotations cannot convey. It does not mention rate limits, upstream availability, or what happens when no code matches.

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, no filler: the first states what it does, where it reads from and what it returns; the second states when to use it. Purpose is front-loaded and nothing is redundant.

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

Completeness5/5

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

For a simple read-only lookup with full schema coverage, the description supplies everything needed: the data source, the two search modes, the returned fields, and the trigger conditions. No output schema exists, but the return values are enumerated in prose, so an agent can call and interpret the result without further information.

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 three parameters (texto, codigo, max) with formats and limits. The description's "por código de 13 dígitos o por descripción" largely restates the schema and adds only the implicit suggestion of two lookup modes. It does not clarify that both filters can be combined or what occurs when neither is supplied, despite 0 required parameters.

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 ("Busca"), a specific resource ("catálogo CABYS que publica Hacienda"), both search modes (por código de 13 dígitos o por descripción), and the returned fields (código, descripción, porcentaje de IVA). This is clearly distinct from the sibling tools, which deal with contribuyentes, Hacienda responses, comprobantes and cédulas, none of which touch the CABYS catalog.

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?

Gives an explicit trigger: "Úsela cuando el usuario necesite el código CABYS de un producto o servicio, o quiera confirmar el de una línea de factura." That is concrete context for invocation. It does not name exclusions or point to sibling tools for adjacent needs (e.g. verifying a cédula), so it falls short of a 5.

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