Skip to main content
Glama

buscar

Read-onlyIdempotent

Search Mexico's energy regulation and return citable article fragments filtered by law, issuer, type, or effective date, with validity status and official publication links.

Instructions

Busca en la regulación energética mexicana y devuelve fragmentos citables.

Args:
    consulta: pregunta o términos en español. Reconoce artículos ("artículo 20"), siglas
        (LSE, LSH, LIE...) y nombres de leyes, reglamentos y DACG.
    k: número de resultados (máximo 20).
    tipo: "ley", "reglamento" o "dacg".
    emisor: por ejemplo "Comisión Nacional de Energía" o "CNE".
    incluir_abrogados: incluye normas abrogadas (por omisión sólo vigentes, salvo que la
        consulta nombre una abrogada).
    fecha: AAAA-MM-DD; devuelve sólo lo que estaba en vigor ese día (régimen temporal).

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": {
      "consulta": "<consulta>"
    },
    "name": "buscar"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNo
tipoNo
fechaNo
emisorNo
consultaYes
incluir_abrogadosNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Without annotations, this would be higher: the description discloses the result cap (max 20), that only in-force norms are returned by default unless the query names an abrogated one, and that fecha restricts to what was in force that day. Against annotations that already flag a safe, read-only, idempotent, closed-world lookup, these additions are useful but the description says nothing about result size beyond k or what a citable fragment looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose sentence is front-loaded and the remaining content is an Args block, so it is scannable. The listing format repeats each parameter name, which is mild structural overhead, but with zero schema descriptions every line earns its place.

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?

An output schema exists, so return values need not be explained. With six parameters, one required, all of them documented, plus default behavior and the temporal-regime rule, an agent has enough to call it correctly; only the practical consequences of k (result volume, no pagination) are unstated.

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%, so the description carries the full burden and does so: consulta accepts questions, article citations, acronyms and norm names; k is capped at 20; tipo's allowed values (ley/reglamento/dacg) are supplied even though the schema has no enum; emisor gets concrete examples; incluir_abrogados and fecha both get their precise semantics, including the conditional default.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: "Busca en la regulación energética mexicana y devuelve fragmentos citables" — an agent knows immediately it retrieves search hits, not full documents. It does not name a sibling (e.g. leer_articulo or documento) to draw the boundary explicitly, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied: the tool is for natural-language questions or terms about Mexican energy regulation, and the parameter notes encode scoping rules (default excludes abrogated norms, fecha selects the temporal regime). However, there is no explicit when-to-use vs. when-to-use-an-alternative guidance, and none of the sibling tools are referenced.

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

Deploy Server

Other Tools