Skip to main content
Glama
SA Municipal Finance MCP

SA Municipal Finance MCP

by root7-labs

Compare municipalities (Pro)

compare_municipalities
Read-only

Rank South African municipalities on Treasury financial health indicators for their latest audited year; compare up to 20 named municipalities or filter by province and category.

Instructions

Pro: rank municipalities on Treasury's financial health indicators for their latest audited year. Give a list of up to 20 municipalities, or a province and/or category (e.g. all metros, or all local municipalities in the Western Cape).

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

Input Schema

NameRequiredDescriptionDefault
sort_byNoDefault 'score' (overall good/average/bad balance).
categoryNoA = metropolitan, B = local, C = district municipality.
provinceNoProvince name or code.
municipalitiesNoCodes or names, e.g. ['CPT', 'JHB', 'ETH'].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds real context beyond that: a 'Pro' tier gate and the fact that figures come from the latest audited year (implied recency lag). It says nothing about what happens on the free tier, what 'score' means beyond the schema's own note, or result ordering behavior.

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 tight sentences with the core action front-loaded and the input options after it; nothing is padded. The 'Pro:' prefix is slightly cryptic but functions as an availability signal.

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 indicates what a 'ranking' result contains — presumably a sorted list with indicator values, but the agent must guess. For a read-only, four-optional-parameter comparison tool this is adequate but leaves a real gap about return shape and sort ordering.

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 sort_by defaults, category enums, province, and the maxItems=20 cap; the description largely restates that limit. It does add mild value by pairing category/province with concrete examples ('all metros', 'all local municipalities in the Western Cape'), which clarifies how filters combine, but stops short of describing the precedence between the municipalities list and the filters.

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 and resource — 'rank municipalities on Treasury's financial health indicators' — plus the data scope ('latest audited year'). This distinguishes it from single-entity siblings like municipality_profile or financial_health, though it never names them explicitly.

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 explains two accepted input modes: an explicit list of up to 20 municipalities, or a province/category filter such as 'all metros' or 'all local municipalities in the Western Cape'. That is useful invocation guidance, but there is no statement of when to use this versus the single-municipality siblings or what happens with no arguments at all.

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