Skip to main content
Glama

Geo-Insights Environmental Data

Rank BGI Measures for Municipality

rank_measures
Read-onlyIdempotent

Rank BGI measures for a municipality using policy-weighted scoring.

Combines goal alignment, cost-effectiveness, and maintenance into a
single ranked list. Use different policy profiles to see how priorities
change the ranking.

Args:
    gemeente_code: CBS municipality code (e.g. "GM0599" for Rotterdam).
                  Use lookup_municipality to find codes.
    goal: Optional boost for a specific goal (flood, heat, drought,
          biodiversity, social, economic)
    policy_profile: Scoring profile — one of: Balanced, Flood-focused,
                   Heat-focused, Drought-focused, Biodiversity-first,
                   Cost-efficient (default: Balanced)
    limit: Max results (default 10, max 50)

Premium tool — requires mcp:tools:premium scope when premium gating is
enabled (MCP_PREMIUM_GATING=true).

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": {
      "gemeente_code": "<gemeente_code>"
    },
    "name": "rank_measures"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNo
limitNo
gemeente_codeYes
policy_profileNoBalanced

Output Schema

NameRequiredDescriptionDefault
countYes
measuresYes
last_updatedNo
gemeente_codeYes
gemeente_nameYes
policy_profileYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds genuinely useful non-schema behavior: premium gating via MCP_PREMIUM_GATING=true and the mcp:tools:premium scope requirement, plus the composite scoring dimensions. It says nothing about ranking tie-breaking, result ordering, or pagination beyond the limit cap.

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?

Front-loaded with a one-line statement of purpose and mechanism before the args list, and the premium note is appended last where it belongs. The args block duplicates the schema structurally, but given 0% schema coverage that repetition earns its place.

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

Completeness5/5

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

Complete for a 4-parameter ranking tool: every parameter is explained, the enum values are enumerated, the auth/premium constraint is disclosed, and an output schema exists so return values need no prose. Nothing required to invoke it correctly is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry all parameter meaning and it does: gemeente_code format with a concrete example ('GM0599' Rotterdam), the full goal enum (flood, heat, drought, biodiversity, social, economic), all six policy_profile values with the Balanced default, and limit's default of 10 with a max of 50.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

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

States a specific verb and resource ('Rank BGI measures for a municipality') plus the mechanism ('policy-weighted scoring') and the output shape ('single ranked list' combining goal alignment, cost-effectiveness and maintenance). An agent can distinguish this from search_bgi_measures or compare_measures without opening a schema.

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?

Gives clear usage context: vary the policy profile to see how priorities change the ranking, and call lookup_municipality to obtain the required gemeente_code. It does not explicitly say when to prefer compare_measures or search_bgi_measures instead, so it falls short of the explicit when-not/alternatives bar.

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