Skip to main content
Glama

get_locality

Read-onlyIdempotent

Locality votes, parties, blocs and turnout; identifies combined reporting units and unavailable historical results.

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": {
      "code": "<code>"
    },
    "name": "get_locality"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesOfficial CBS locality code returned by search_localities; for example 4000 for Haifa.
election_idNolatest, a Knesset ID such as k26, or full YYYY-MM-DD date. A bare 2019 is ambiguous.latest

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / code / description
      Added value: +"Official CBS locality code returned by search_localities; for example 4000 for Haifa."
  2. First observed

TDQS

B3.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive behavior, so the safety profile is covered. The description adds real operational context beyond that: it warns that some historical results are unavailable and that combined reporting units are identified, which tells the agent to expect flagged or missing data. It stops short of describing rate limits, data source caveats, or response shape.

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?

A single compact sentence with no filler, front-loading the data dimensions and appending the two caveats. It is telegraphic enough that the missing verb costs a little clarity, but nothing is wasted.

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?

For a two-parameter read tool with full annotations and no output schema, the description covers the content dimensions and two important data caveats. It still leaves the agent unsure whether this returns results for exactly one election (per election_id) and what the result structure or empty-result behavior looks like, so it is adequate rather than complete.

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%, and the schema itself explains the CBS code format, the example (4000 for Haifa), and the election_id 'latest'/k26/date conventions. The description adds no parameter-level meaning of its own, so the baseline of 3 applies.

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

Purpose3/5

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

The description is a noun-phrase list of content ('Locality votes, parties, blocs and turnout') rather than a verb+resource statement, so the agent must infer that this retrieves election results for a single locality. It does hint at the domain (locality-level electoral data) but never states the operation or ties it to the required locality code, leaving overlap with siblings like get_election and get_polling_station unresolved.

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 when-to-use or when-not-to-use guidance at all. Nothing tells the agent to prefer get_election for national results or search_localities to obtain the code first (that hint lives only in the schema), and no exclusions or prerequisites are stated.

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