Skip to main content
Glama

mkna: Ecuador's official documents

search

Read-onlyIdempotent

Find passages in every document Ecuadorian public institutions publish. Start every question here.

query: words or a question, best in Spanish, as the documents are ("inversión extranjera en minería", "Decreto Ejecutivo 489", "Art. 15 Ley de Minería"); English works less well. Filters, each one value or several comma-separated, all optional: family (a publisher key from catalog, e.g. 'registro_oficial'), kind (the kind the publisher printed, e.g. 'resolución', or a normalised one: ley, codigo, reglamento, decreto, resolucion, acuerdo, ordenanza, sentencia...), category (normativa | comunicacion | otros), sector (a sector of catalog such as 'ley' or 'local', or an economic one such as 'mineria'), topic (e.g. 'inversion_extranjera', 'tributario'), published_from / published_to (ISO dates or years), document_id (search inside one document), sort (relevance | newest), limit (<= 20, default 8).

Returns results: each a passage, verbatim, with id (the passage id, for fetch), document_id, title, instrument, publisher, family, kind, published, url, page, heading and text (<= 1,200 chars); Court rulings also have abstract when their Court-written Resumen is present. facets counts the documents of the wider candidate set by family, kind and year: search again with one of them as a filter to narrow. Next: fetch the two or three best results; quote with title, page and url.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo
sortNorelevance
limitNo
queryYes
topicNo
familyNo
sectorNo
categoryNo
document_idNo
published_toNo
published_fromNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, and non-destructive behavior. The description goes far beyond by detailing the return structure (results with specific fields, facets with counts), the 1,200-char text limit, the limit <=20 cap, sorting options, and the presence of abstracts for Court rulings. It also explains that facets can be used to narrow subsequent searches, providing actionable behavioral context that annotations do not cover.

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?

The description is well-structured: a clear opening purpose, then query guidance, then filters, then return values, then next steps. Every sentence adds value—no fluff or repetition. It is appropriately detailed for an 11-parameter tool and front-loads the most critical information (purpose and primary usage) before diving into specifics.

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 complex tool with 11 parameters, no output schema, and no parameter descriptions in the schema, this description is exceptionally complete. It explains all parameters, the exact output format, facet usage, sorting, limits, and even the recommended follow-up action (fetch). An agent has everything needed to call the tool correctly and interpret results without ambiguity.

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 of parameter documentation. It explains every filter (family, kind, category, sector, topic, published_from/to, document_id, sort, limit) with examples and normalizations, and even advises on query language effectiveness. This fully compensates for the missing schema descriptions and adds meaning beyond the raw titles.

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 ('Find') and a precise resource ('passages in every document Ecuadorian public institutions publish'), and adds the directive 'Start every question here,' which clearly distinguishes it from siblings like catalog, documents, and fetch. An agent knows exactly what this tool does and when to reach for it.

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?

The description explicitly tells the agent to start every question here and to follow up with fetch on the top results, giving clear when-to-use guidance. It does not explicitly contrast with catalog or documents, but the 'start here' instruction strongly implies this is the primary search entry point, which is adequate for selection.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources