Skip to main content
Glama

Rankear compañías por indicadores financieros

search_ranking
Read-only

Rank Ecuadorian Supercías companies by financial indicators for a chosen fiscal year, filter by CIIU level-1, and sort descending to get top-N results.

Instructions

Rank Supercías companies by financial indicators for one fiscal year (2008 to the latest year), optionally by CIIU letter. descending=true for top-N by a column.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_ranking"
  }
}

Input Schema

NameRequiredDescriptionDefault
anioNoFiscal year, 2008 to the latest; defaults to the latest available year (which may still be incomplete while filings arrive).
limitNoMax results (default 20, max 100).
formatNotext summary (default) or json structured result.text
offsetNoPagination offset.
ciiu_n1NoOptional CIIU level-1 filter, e.g. "C", "G", "I".
order_byNoColumn to sort by (e.g. "posicion_general", "activos", "roe").posicion_general
descendingNoSet true for "top N" style queries (e.g. highest ingresos_ventas/roe first).

Output Schema

NameRequiredDescriptionDefault
totalNo
offsetNo
sourceNo
metadatosYes
url_fuenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.15.0
    • changedInput schema / properties / anio / description
      Previous value: -"Fiscal year filter; defaults to the latest available year (the latest year may still be incomplete while filings arrive)."New value: +"Fiscal year, 2008 to the latest; defaults to the latest available year (which may still be incomplete while filings arrive)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "metadatos": {
      +      "properties": {
      +        "contrato": {
      +          "const": "ecudatamcp.response.v1"
      +        }
      +      },
      +      "required": [
      +        "contrato"
      +      ],
      +      "type": "object"
      +    },
      +    "offset": {},
      +    "source": {},
      +    "total": {},
      +    "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. Changed7 schema fields changedv0.10.0
    • addedInput schema / properties / anio / description
      Added value: +"Fiscal year filter; defaults to the latest available year (the latest year may still be incomplete while filings arrive)."
    • addedInput schema / properties / ciiu_n1 / description
      Added value: +"Optional CIIU level-1 filter, e.g. \"C\", \"G\", \"I\"."
    • addedInput schema / properties / descending / description
      Added value: +"Set true for \"top N\" style queries (e.g. highest ingresos_ventas/roe first)."
    • addedInput schema / properties / format / description
      Added value: +"text summary (default) or json structured result."
    • addedInput schema / properties / limit / description
      Added value: +"Max results (default 20, max 100)."
    • addedInput schema / properties / offset / description
      Added value: +"Pagination offset."
    • addedInput schema / properties / order_by / description
      Added value: +"Column to sort by (e.g. \"posicion_general\", \"activos\", \"roe\")."
  4. Changed9 schema fields changedv0.8.14
    • removedInput schema / properties / anio / title
      Removed value: -"Anio"
    • removedInput schema / properties / ciiu_n1 / title
      Removed value: -"Ciiu N1"
    • removedInput schema / properties / descending / title
      Removed value: -"Descending"
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / offset / title
      Removed value: -"Offset"
    • removedInput schema / properties / order_by / title
      Removed value: -"Order By"
    • removedInput schema / title
      Removed value: -"search_rankingArguments"
    • removedOutput schema / title
      Removed value: -"search_rankingDictOutput"
  5. First observedv0.8.12

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this is a safe read-only, non-destructive operation, so the description is not burdened with safety disclosure. It adds useful behavioral context that the latest year may still be incomplete while filings arrive, but says nothing about result ordering stability, pagination behavior across offsets, or how ties in order_by are resolved.

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?

Two sentences with no filler, front-loading the core action and scope before the sort-direction hint. Minor friction from the misspelled 'Supercías', but the structure is otherwise efficient and readable.

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 a full output schema, complete parameter descriptions, and read-only annotations, the description only needs to frame intent and scope, which it does. The remaining gap is routing guidance against sibling tools and any note on how ranking results are ordered when the sort column has ties.

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 seven parameters already carry their own explanations, including defaults and the enum for format. The description only echoes the year range and the descending/order_by relationship, adding no new syntax or format details. Baseline 3 is appropriate 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 gives a specific verb plus resource: rank companies (from Supercías filings) by financial indicators for a single fiscal year. It also states the scoping dimensions (year, optional CIIU letter, sort direction). It does not differentiate itself from the sibling search_companias, which is the most likely point of confusion for an agent choosing a company-lookup tool.

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 implies usage through the year range and the 'descending=true for top-N by a column' hint, which tells an agent how to phrase ranking queries. However, there is no explicit when-to-use/when-not guidance and no named alternative for plain company lookup or indicator series lookup (e.g. search_companias, search_cepalstat_indicadores).

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