Pe Ruc Search
pe_ruc_searchSearch SUNAT's published taxpayer register by company name (razon social) -- legal entities only (RUC prefix 20 and government offices); natural persons are excluded entirely and are never returned. Accent-insensitive substring match: every word of 3+ letters must appear in the name. Active registrations are listed before deregistered ones. Optionally restrict to a place with a ubigeo prefix (2 digits = department, e.g. "15" Lima; 4 = province; 6 = district). Returns RUC, name, status and address so you can pick the right one.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "alicorp",
"limit": 3,
"ubigeo": "15"
},
"name": "pe_ruc_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Company name or part of it, e.g. "BANCO DE CREDITO" or "alicorp". | |
| limit | No | Maximum results (1-50, default 10). | |
| ubigeo | No | Optional ubigeo prefix: 2, 4 or 6 digits (e.g. "15" Lima department, "150122" Miraflores). | |
| active_only | No | If true, return only registrations whose status is ACTIVO (default false: active first, then the rest). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| found | No | ||
| query | No | ||
| reason | No | ||
| source | No | ||
| ubigeo | No | ||
| message | No | ||
| results | No | ||
| returned | No | ||
| data_as_of | No |