Skip to main content
Glama
pipaacebedo

seace-mcp

by pipaacebedo

Buscando entidades

buscar_entidades

Search Peruvian state entities in SEACE by name, RUC, or acronym to get RUC and exact names for procurement queries.

Instructions

Busca ENTIDADES del Estado peruano en el buscador SEACE por nombre, RUC o sigla.

Args: nombre: texto del nombre de la entidad (ej 'SEDAPAL'). ruc: RUC exacto de 11 digitos. sigla: sigla de la entidad. ses: sesion previa opcional (GLOBAL y compartida entre tools; si se omite se abre una temporal).

Devuelve: {'ok', 'ses', 'total', 'filas': [{index, ruc, tipo_documento, nombre}]}. Usa el 'ruc' para buscar_ocos y el nombre exacto para buscar_procesos(entidad=...).

Input Schema

NameRequiredDescriptionDefault
rucNo
sesNo
siglaNo
nombreNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and adds real context: the 'ses' is a GLOBAL session shared across tools, and omitting it opens a temporary one. The return shape is also disclosed. It stops short of stating read-only/auth/rate-limit behavior, but for a lookup tool this is substantially informative.

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?

Front-loaded purpose sentence, then a compact Args/Devuelve structure. Every line earns its place, and the crucial session semantics and return shape are conveyed without padding.

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?

With no output schema and no annotations, the description steps in to document the return dict ({ok, ses, total, filas:[...]}) and how to consume it. Nothing an agent needs to call this correctly or chain it is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, yet the description compensates fully for all four params: nombre (with an example), ruc (exactly 11 digits), sigla, and ses (shared/global, temporary if omitted). Each parameter gains meaning richer than the bare schema types.

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?

States a specific verb (Busca), a precise resource (ENTIDADES del Estado peruano), the source (buscador SEACE), and the search keys (nombre, RUC o sigla). This is unmistakably distinct from siblings like buscar_procesos or buscar_ocos, which target different SEACE resources.

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?

Explicitly routes the agent downstream: use the returned 'ruc' for buscar_ocos and the exact name for buscar_procesos(entidad=...). It does not state when to prefer this tool over alternatives or prerequisites, so it stops short of a full when/when-not spec.

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