Skip to main content
Glama

consulta_maestra

Read-only

Run mandatory first-step research across Chilean statutes, doctrine, and official sources to return literal text with ready-to-paste citations.

Instructions

PRIMER PASO OBLIGATORIO de toda consulta jurídica: consulta simultáneamente el dataset de Hugging Face, la doctrina canónica, el grafo, las normas chilenas (BCN) y los organismos oficiales del Estado según la materia detectada (DT, CGR, SII, PJUD, SMA, CMF, etc.), devolviendo las fuentes con su TEXTO LITERAL y su corchete de cita listo para pegar. Usala antes de responder aunque creas saber la respuesta: el producto no cita de memoria. Si la materia es ambiental (SMA, SEIA/RCA, daño ambiental, humedales, Tribunales Ambientales), el primer paso es el módulo ambiental_consulta_maestra, que cubre además los anuarios, boletines y la biblioteca ambiental completos.

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": "consulta_maestra"
  }
}

Input Schema

NameRequiredDescriptionDefault
consultaYesLa consulta jurídica tal como la hizo la persona
max_fuentesNoCuántas fuentes por familia (por defecto 3)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety and external-reach are covered structurally. The description adds genuinely useful behavior beyond that: it fans out across several source families simultaneously and returns each source with its TEXTO LITERAL plus a citation bracket ready to paste, which tells the agent what the payload looks like and why it must not answer from memory. It does not mention latency, result caps, or what happens when a source family returns nothing — minor omissions given the annotation coverage.

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 mandatory-first-step constraint is front-loaded in capitals, followed by what it queries, then the environmental redirect — a logical order with no filler sentences. It runs slightly long and repeats the mandatory framing twice ("PRIMER PASO OBLIGATORIO" and "Usala antes de responder aunque creas saber la respuesta"), but the repetition reinforces rather than wastes.

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 two-parameter, no-output-schema tool with rich annotations, the description covers what it does, when it is mandatory, what it returns (literal text plus citation brackets), and where to go instead. Nothing needed to invoke it correctly is missing.

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 coverage is 100%, so both parameters (`consulta`, `max_fuentes`) are already documented in the schema. The description adds no syntax or formatting guidance for `consulta` and never mentions `max_fuentes`, though its repeated language about source families gives implicit context for 'per family'. Baseline 3 applies when the schema does the heavy lifting.

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 (consulta simultáneamente) and enumerates the resources it queries: Hugging Face dataset, doctrina canónica, grafo, normas chilenas (BCN) and state agencies by subject matter. It also explicitly distinguishes itself from the sibling `ambiental_consulta_maestra` for environmental matters, so an agent can route without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use rule ("PRIMER PASO OBLIGATORIO de toda consulta jurídica", "Usala antes de responder aunque creas saber la respuesta") plus a concrete exclusion and redirect: environmental subjects (SMA, SEIA/RCA, humedales, Tribunales Ambientales) go to `ambiental_consulta_maestra`. Both the trigger and the alternative are named.

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