Skip to main content
Glama

Ver un informe de datos abiertos de Contraloría

get_contraloria_informe
Read-only

Fetch approved Contraloría audit-report rows or annual-plan metadata and a PDF pointer using an informe_id, with preview and JSON output options.

Instructions

Rows of one Contraloría audit-reports CSV (one row per approved report), or metadata and a read_pdf pointer for an annual plan.

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": {
      "informe_id": "<informe_id>"
    },
    "name": "get_contraloria_informe"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsNoNumber of data rows to preview (default: 50, max: 200)
formatNotext summary (default) or json structured result.text
informe_idYesAn id from list_catalogo(fuente='contraloria')

Output Schema

NameRequiredDescriptionDefault
filasNo
sourceNo
columnasNo
metadatosYes
url_fuenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "columnas": {},
      +    "filas": {},
      +    "metadatos": {
      +      "properties": {
      +        "contrato": {
      +          "const": "ecudatamcp.response.v1"
      +        }
      +      },
      +      "required": [
      +        "contrato"
      +      ],
      +      "type": "object"
      +    },
      +    "source": {},
      +    "url_fuente": {}
      +  },
      +  "required": [
      +    "metadatos"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.13.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  3. Changed1 schema field changedv0.11.0
    • changedInput schema / properties / informe_id / description
      Previous value: -"An id from list_contraloria_informes"New value: +"An id from list_catalogo(fuente='contraloria')"
  4. Changed3 schema fields changedv0.10.0
    • addedInput schema / properties / format / description
      Added value: +"text summary (default) or json structured result."
    • addedInput schema / properties / informe_id / description
      Added value: +"An id from list_contraloria_informes"
    • addedInput schema / properties / rows / description
      Added value: +"Number of data rows to preview (default: 50, max: 200)"
  5. Changed5 schema fields changedv0.8.14
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / informe_id / title
      Removed value: -"Informe Id"
    • removedInput schema / properties / rows / title
      Removed value: -"Rows"
    • removedInput schema / title
      Removed value: -"get_contraloria_informeArguments"
    • removedOutput schema / title
      Removed value: -"get_contraloria_informeDictOutput"
  6. First observedv0.8.12

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, openWorld, non-destructive), so the bar is lower. The description still adds real behavioral context beyond them: it discloses that the result set is a preview of rows for report CSVs, and that annual plans come back as metadata with a read_pdf handoff — information an agent needs to interpret the response shape.

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?

A single front-loaded sentence with no wasted clauses. It is slightly elliptical — the dual-mode contrast is compressed into one line and the grammatical fragment requires a second read — but nothing is superfluous.

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?

With an output schema present, return-field detail need not be repeated, and the description covers the key complexity: the two formats of informe and the routing to read_pdf. The main residual gap is any guidance on preview size or paging behavior beyond the schema's max.

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%, including defaults and the max of 200 for rows and the text/json enum, so the schema carries the parameter meaning. The description only adds that each row corresponds to one approved report, which is marginal added value; 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 names the specific resource (a Contraloría audit-reports CSV keyed by informe_id) and distinguishes two return modes: data rows for approved reports versus metadata plus a read_pdf pointer for annual plans. It is clearly more than a restatement of the title, though the fragmentary phrasing ('Rows of one ... CSV') takes a reading to parse.

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?

It gives a useful prerequisite — the id comes from list_catalogo(fuente='contraloria') — and implicitly signals that annual plans should be followed up via read_pdf. However, it never states when to prefer this tool over list_catalogo or any sibling, nor any exclusion conditions.

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