Skip to main content
Glama

graphify_consulta_subgrafo

Query the Chilean legal-doctrine knowledge graph and retrieve a hyper-dense subgraph of related norms, court criteria, scholars, and procedural rules, saving 99.9% of tokens vs. full doctrine.

Instructions

Consulta el Knowledge Graph Jurídico de Doctrina Chilena (LegalGraphify), extrayendo subgrafos sintéticos hiper-densos (normas BCN, criterios CS, tratadistas y operativa procesal) con un ahorro mediano del 99,9% de tokens (ficha mediana: 91 tokens frente a la obra completa: 96.536) respecto a la lectura del texto doctrinal completo. La medición es reproducible: docs/medicion_tokens.md.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesConcepto jurídico, institución, norma o materia a consultar en el subgrafo (ej. 'simulacion', 'imprevision', 'nulidad', 'tutela laboral')
max_hopsNoRadio de saltos relacionales en el grafo (por defecto 1)
incluir_mermaidNoSi es True, incluye el diagrama Mermaid renderizable del subgrafo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.1

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does convey that this is a consult-style operation producing synthetic hyper-dense subgraphs and quantifies token efficiency, which adds behavioral context. However, it does not disclose the output shape, size limits, or any side-effect/reliability considerations beyond the extraction claim.

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

Conciseness3/5

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

The description is a single dense sentence and remains readable, but it mixes the core function with a specific token-savings statistic and a reproducibility pointer. That metric is not needed for tool selection or invocation and distracts from more actionable routing information.

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

Completeness2/5

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

For a graph query tool with no output schema and no annotations, the description is incomplete. It does not explain what a returned subgraph looks like, how max_hops affects results, or when to prefer this over closely related graphify_* siblings, leaving the agent without enough operational context to call it confidently.

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%, and query, max_hops, and incluir_mermaid already have clear descriptions in the schema. The description adds no parameter-level detail beyond confirming the normative/doctrinal sources, so the baseline 3 is appropriate.

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 identifies a specific action ('Consulta' / extracting subgraphs) and a specific resource ('Knowledge Graph Jurídico de Doctrina Chilena'), going beyond the tool name alone. It does not explicitly contrast with sibling graphify_* tools, but the subgraph-extraction focus provides enough differentiation for basic selection.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is provided. It does not name alternatives like graphify_explicar_institucion, graphify_analizar_impacto, or doctrina_search, nor explain what kind of question should route to this tool rather than those siblings. Usage context is only implied by the term 'knowledge graph' and the schema examples.

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