Skip to main content
Glama

get_ranking_head

Read-onlyIdempotent

DataRespublica — tête d’un classement /tops précalculé. ranking_slug : prix-immobilier, prix-immobilier-evolution-1y, delinquance, taxe-fonciere, communes-plus-endettees, villes-les-plus-chaudes (température moyenne 2016-2025), passoires-thermiques (part des DPE F ou G), deserts-medicaux (APL médecins généralistes, du plus faible au plus fort).

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": {
      "ranking_slug": "<ranking_slug>"
    },
    "name": "get_ranking_head"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNombre maximal de communes retournées, de 1 à 50 (ex. 10)
ranking_slugYesIdentifiant du classement (ex. prix-immobilier, delinquance, taxe-fonciere)
min_populationNoPopulation minimale facultative en habitants (1 000 par défaut pour climat et DPE, 2 000 pour les autres classements)
departement_codeNoFiltre département INSEE facultatif (ex. 69, 2A ou 971)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / min_population / description
      Previous value: -"Population minimale facultative en habitants (ex. 10000)"New value: +"Population minimale facultative en habitants (1 000 par défaut pour climat et DPE, 2 000 pour les autres classements)"
  2. Changed4 schema fields changed
    • addedInput schema / properties / departement_code / description
      Added value: +"Filtre département INSEE facultatif (ex. 69, 2A ou 971)"
    • addedInput schema / properties / limit / description
      Added value: +"Nombre maximal de communes retournées, de 1 à 50 (ex. 10)"
    • addedInput schema / properties / min_population / description
      Added value: +"Population minimale facultative en habitants (ex. 10000)"
    • addedInput schema / properties / ranking_slug / description
      Added value: +"Identifiant du classement (ex. prix-immobilier, delinquance, taxe-fonciere)"
  3. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds that results come from a precomputed ranking and specifies the sort direction for one slug ('du plus faible au plus fort'), but says nothing about data freshness, default result size, or ordering stability — 'tête' merely restates the name.

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?

Purpose is front-loaded in the first clause and the remaining text is a dense but useful value catalog with no filler. The comma-separated slug list is harder to scan than a bulleted form, but every element carries information the agent needs.

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, and the description never says what a result row contains (commune identity, ranking value, rank position) or how many items come back by default. Given precomputed rankings and a limit capped at 50, this return-shape gap is the main incompleteness for a tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage the schema already documents limit, min_population and departement_code, so the baseline is 3. The description earns extra credit by enumerating the valid ranking_slug values with their underlying metric for several entries (moyenne 2016-2025, part des DPE F ou G, APL médecins généralistes), compensating for the fact that ranking_slug has no enum in the schema.

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 resource ('tête d’un classement /tops précalculé') and makes the specific role clear: it surfaces the top of a precomputed ranking rather than raw indicator lookups. A caveat is that the verb is nominal and the English-only agent must parse French, but the enumerated slugs make the scope unambiguous in practice.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit statement of when to use this tool versus siblings such as get_territory_scores, get_delinquance_commune or get_cadre_vie_commune, and no exclusions or prerequisites. The slug list tells the agent what it can request, not when this route is preferable to a per-commune indicator tool.

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