Skip to main content
Glama

Consultar datos de un indicador del SUT o la Judicatura

query_sut_indicador
Read-only

Retrieve live SUT, Judicatura, or CFN dashboard indicator data by selecting fields, applying equality filters, and setting row limits for analysis.

Instructions

Live query of one SUT or Consejo de la Judicatura dashboard's data model (fuente): choose campos, optional equality filtros (plain columns only) and a row limite. Take the indicador from list_catalogo(fuente) and its valid campos from get_sut_indicador_schema.

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": {
      "indicador": "<indicador>",
      "campos": "<campos>"
    },
    "name": "query_sut_indicador"
  }
}

Input Schema

NameRequiredDescriptionDefault
camposYesField labels exactly as returned by get_sut_indicador_schema.
formatNotext summary (default) or json structured result.text
fuenteNosut (default) | judicatura | cfnsut
limiteNoRow cap applied server-side by the query itself (clamped to 20000; the result carries truncado=true when the cap was reached).
filtrosNoOptional {campo: valor} equality filters, plain columns only.
indicadorYesA key from list_catalogo(fuente=<fuente>).

Output Schema

NameRequiredDescriptionDefault
sourceNo
metadatosYes
url_fuenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.15.0
    • changedInput schema / properties / fuente / description
      Previous value: -"sut (default) | judicatura"New value: +"sut (default) | judicatura | cfn"
    • changedInput schema / properties / fuente / enum
      Previous value: -[
      -  "sut",
      -  "judicatura"
      -]New value: +[
      +  "sut",
      +  "judicatura",
      +  "cfn"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "metadatos": {
      +      "properties": {
      +        "contrato": {
      +          "const": "ecudatamcp.response.v1"
      +        }
      +      },
      +      "required": [
      +        "contrato"
      +      ],
      +      "type": "object"
      +    },
      +    "source": {},
      +    "url_fuente": {}
      +  },
      +  "required": [
      +    "metadatos"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changedv0.13.0
    • changedInput schema / properties / limite / description
      Previous value: -"Row cap applied server-side by the query itself."New value: +"Row cap applied server-side by the query itself (clamped to 20000; the result carries truncado=true when the cap was reached)."
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  3. Changed2 schema fields changedv0.12.0
    • addedInput schema / properties / fuente
      Added value: +{
      +  "default": "sut",
      +  "description": "sut (default) | judicatura",
      +  "enum": [
      +    "sut",
      +    "judicatura"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / indicador / description
      Previous value: -"A key from list_catalogo(fuente='sut')."New value: +"A key from list_catalogo(fuente=<fuente>)."
  4. Changed1 schema field changedv0.11.0
    • changedInput schema / properties / indicador / description
      Previous value: -"A key from list_sut_indicadores."New value: +"A key from list_catalogo(fuente='sut')."
  5. Changed5 schema fields changedv0.10.0
    • addedInput schema / properties / campos / description
      Added value: +"Field labels exactly as returned by get_sut_indicador_schema."
    • addedInput schema / properties / filtros / description
      Added value: +"Optional {campo: valor} equality filters, plain columns only."
    • addedInput schema / properties / format / description
      Added value: +"text summary (default) or json structured result."
    • addedInput schema / properties / indicador / description
      Added value: +"A key from list_sut_indicadores."
    • addedInput schema / properties / limite / description
      Added value: +"Row cap applied server-side by the query itself."
  6. Changed7 schema fields changedv0.8.14
    • removedInput schema / properties / campos / title
      Removed value: -"Campos"
    • removedInput schema / properties / filtros / title
      Removed value: -"Filtros"
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / indicador / title
      Removed value: -"Indicador"
    • removedInput schema / properties / limite / title
      Removed value: -"Limite"
    • removedInput schema / title
      Removed value: -"query_sut_indicadorArguments"
    • removedOutput schema / title
      Removed value: -"query_sut_indicadorDictOutput"
  7. First observedv0.8.12

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds that this is a 'Live query' and that filtros work only on 'plain columns', but it does not disclose rate limits, authentication needs, or output behavior. With annotations carrying the main safety signal, the description adds modest but not rich behavioral context.

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 description is two efficient sentences that front-load the main operation and then the prerequisite workflow. There is little waste, though the first sentence is dense with parenthetical jargon ('fuente', 'campos', 'filtros', 'limite') that makes it slightly harder to parse quickly.

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?

Given a rich input schema, an output schema, and annotations covering safety, the description supplies the key missing context: the prerequisite calls for indicador and campos, and the live-query nature of the tool. A minor gap is that it mentions only SUT and Consejo de la Judicatura while the fuente enum also includes 'cfn', though the schema makes this clear.

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 the schema already documents all six parameters in detail. The description reinforces that campos come from get_sut_indicador_schema and filtros are equality filters on plain columns, but it adds no syntax, format, or edge-case detail beyond the schema. The baseline of 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Live query of one SUT or Consejo de la Judicatura dashboard's data model (fuente)'. It also clarifies the core inputs ('choose campos, optional equality filtros ... and a row limite'), making the operation distinguishable from the sibling schema and catalog tools. It stops short of a 5 because the phrase 'dashboard's data model' is slightly abstract and it does not explicitly contrast itself with every relevant sibling.

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 gives clear prerequisite guidance: 'Take the indicador from list_catalogo(fuente) and its valid campos from get_sut_indicador_schema.' This tells the agent how to obtain the required inputs before invoking the tool. It does not state explicit exclusions or when to prefer an alternative tool, which keeps it below a 5.

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