Skip to main content
Glama

doctrina_search

Read-only

Search Chilean legal doctrine manuals and treatises by concept, author, or area, combining full-text and optional hybrid semantic retrieval to find supporting citations.

Instructions

Busca en el canon dogmático de manuales y tratados jurídicos chilenos más citados (Barros Bourie, Ramos Pazos, Peñailillo, Maturana, Bermúdez, Cury, Gamonal, Cea Egaña) mediante búsqueda FTS5 BM25 y modo híbrido semántico opcional (Reciprocal Rank Fusion local).

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": {
      "query": "<query>"
    },
    "name": "doctrina_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNoÁrea del derecho (opcional: 'Civil', 'Procesal', 'Penal', 'Laboral', 'Administrativo', 'Constitucional')
autorNoNombre o apellido del tratadista (opcional: 'Barros', 'Ramos Pazos', 'Cury')
limitNoCantidad máxima de resultados (por defecto 5)
queryYesTérmino o concepto dogmático a buscar (ej. 'clausula penal', 'culpa infraccional', 'tutela laboral')
hibridoNoSi es True, fusiona BM25 con similitud vectorial local (RRF) para consultas en lenguaje coloquial

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.17.0
    • changedInput schema / properties / hibrido / description
      Previous value: -"Si es True, fusiona BM25 con similitud vectorial local (RRF) para consultas en lenguaje coloquial (por defecto False)"New value: +"Si es True, fusiona BM25 con similitud vectorial local (RRF) para consultas en lenguaje coloquial"
  2. Changed1 schema field changedv1.16.0
    • addedInput schema / properties / hibrido
      Added value: +{
      +  "default": false,
      +  "description": "Si es True, fusiona BM25 con similitud vectorial local (RRF) para consultas en lenguaje coloquial (por defecto False)",
      +  "type": "boolean"
      +}
  3. First observedv1.5.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered and the description correctly adds value elsewhere: it discloses the retrieval mechanism (FTS5 BM25 with optional local Reciprocal Rank Fusion) and the exact corpus boundaries by author. It says nothing about result shape, excerpt length, or how ranking is exposed, which is the remaining gap.

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?

One dense, front-loaded sentence that leads with the action and the corpus before the technical retrieval detail. The technical jargon (FTS5 BM25, RRF) is compact but slightly opaque for an agent unfamiliar with the stack; nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only search tool with a fully documented schema and no output schema, the definition covers what is searched and how, but never describes what comes back — whether results are full passages, citations with page numbers, or author-attributed fragments. Given there is no output schema to fall back on, this omission leaves the agent guessing about the return value.

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 100%, so all five parameters including the optional 'autor' and 'hibrido' flags are already documented, making 3 the baseline. The description reinforces the author list and restates that hybrid mode fuses BM25 with vector similarity, but adds no new syntax, defaults, or interaction rules beyond the schema.

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?

The description states a specific verb ('Busca') and a precisely bounded resource: the dogmatic canon of the most-cited Chilean legal manuals and treatises, naming the actual authors indexed. It stops short of differentiating itself from the near-identically named sibling 'dt_search_doctrina', so an agent cannot tell the two apart from the description alone.

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 only implied through the corpus scope and the example concepts in the schema ('clausula penal', 'culpa infraccional'), which signal doctrinal-concept lookups. There is no explicit statement of when to prefer this over dt_search_doctrina, busqueda_universal, or the jurisprudence search siblings, and no exclusions or prerequisites.

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