Skip to main content
Glama
LicitaPilot MCP

LicitaPilot MCP

by jmcodero

Ranking de empresas adjudicatarias

ranking_adjudicatarias
Read-onlyIdempotent

Ranks companies by public procurement award amount, filtered by sector, province, or year; without filters, returns the national overall ranking.

Instructions

Empresas que más importe ganan en contratación pública: por sector, por provincia o por año. Sin filtros devuelve el ranking nacional global.

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": "ranking_adjudicatarias"
  }
}

Input Schema

NameRequiredDescriptionDefault
anioNoAño natural, p. ej. 2026 (ranking nacional anual).
limiteNo
sectorNoDivisión CPV de 2 dígitos, p. ej. '45' (obras) o '90' (limpieza y residuos).
provinciaNoProvincia, p. ej. 'Valencia'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered and the description only needs to add context. It adds the no-filter default scope, but omits sort direction, whether results are truncated by limite without warning, and whether there is an implicit time window when anio is omitted.

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 short sentences, front-loaded with the core purpose, followed by the default behavior. No filler, though the second sentence could be tightened and one more clause on filter interaction would still fit comfortably.

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

Completeness3/5

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

There is no output schema, so the agent gets no picture of what a ranking row contains (company name, importe, contract count) or how many rows come back. Combined with the unexplained filter interaction, the definition is adequate but leaves gaps an agent would want filled before trusting the results.

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 75%, so the schema already documents anio, sector and provincia; the description's restatement of those three axes adds little. It could have added real value by explaining how the filters combine (ANDed? does anio force national scope?) and what limite does, but it does not.

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: companies that win the most money in public procurement, and it names the three aggregation axes (sector, province, year). It is clearer than the bare title because it defines the ranking metric (importe ganado), though it never explicitly contrasts itself with ver_empresa or buscar_organismo_o_empresa.

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?

'Sin filtros devuelve el ranking nacional global' defines the zero-argument default, which is genuinely useful routing information. However, there is no statement of when to prefer this over sibling tools such as ver_empresa or estadisticas_baja, and no exclusions or prerequisite conditions.

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