Skip to main content
Glama

buscar_razon_social

Find Peruvian taxpayers by business name. Supports prefix search by default or substring search with '%' prefix for broader results.

Instructions

Busca contribuyentes cuya razon social coincida con texto.

Por defecto busca por PREFIJO, resuelto como un rango sobre el indice (milisegundos). Para buscar por subcadena antepone '%' al texto (p. ej. '%ANDES'), pero eso recorre los ~18 millones de registros y puede tardar decenas de segundos. La comparacion ignora mayusculas y minusculas.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textoYes
limiteNo
Behavior5/5

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

No annotations are provided, so the description fully bears the burden. It discloses default prefix search using an index (milliseconds), substring search scanning all records (tens of seconds), and case-insensitive comparison. This is thorough behavioral disclosure.

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?

The description is three sentences, efficiently front-loaded with the main purpose followed by key details. Every sentence adds value without redundancy.

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?

Given the tool has 2 parameters and no output schema, the description covers the core behavior, performance trade-offs, and case sensitivity. It could mention that the result is a list of taxpayers, but that is implied by the purpose.

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% for both parameters. The description explains 'texto' (the search text) but does not mention 'limite' (limit), which has a default of 10 but no explanation. The description partially compensates for the missing schema descriptions.

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?

The description clearly states the tool searches for taxpayers by business name (razón social) matching a given text. It distinguishes from sibling tools like validar_ruc (validate RUC) and consultar_ruc (consult RUC), which have different purposes.

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?

The description explains default prefix search (fast) and substring search with '%' (slow, tens of seconds), giving clear context on when to use each mode. It does not explicitly exclude alternatives, but the sibling names indicate they cover other queries.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/r2nochi/sunat-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server