Skip to main content
Glama

get_analytics

Read-onlyIdempotent

National/locality aggregate analytics, fixed classifications, correctly defined historical bloc changes and medians. include_cities adds the UI’s latest-size-selected city matrix; missing results stay null.

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

Input Schema

NameRequiredDescriptionDefault
election_idNolatest, a Knesset ID such as k26, or full YYYY-MM-DD date. A bare 2019 is ambiguous.latest
include_citiesNoInclude the city comparison matrix selected by latest-election size when true; default false. Missing historical results remain null.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / include_cities / description
      Added value: +"Include the city comparison matrix selected by latest-election size when true; default false. Missing historical results remain null."
  2. First observed

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, closed-world behavior, so the safety profile is covered. The description adds useful null-handling behavior ('missing results stay null') and explains that include_cities pulls the UI's latest-size-selected matrix, but leaves the meaning of 'fixed classifications' and 'correctly defined historical bloc changes' unexplained.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short, but the first sentence is a dense, jargon-heavy stack of nouns that does not front-load a clear statement of what the tool returns. The second sentence is much clearer and carries most of the practical information.

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?

With only two optional parameters, no output schema, and full annotation coverage, the tool is simple enough that the description is nearly sufficient. Still missing is any indication of the response shape for the aggregate analytics or how this relates to the summary and demographics siblings.

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 both parameters are already documented, including the null-result behavior and the 'latest-size-selected' selection rule. The description only restates those points rather than adding format, units, or selection detail beyond the schema.

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 names the resource ('national/locality aggregate analytics') and the kinds of output ('historical bloc changes and medians'), which separates it somewhat from single-entity siblings like get_locality. However, it is a noun-phrase inventory with no clear verb framing, and phrases like 'fixed classifications' and 'correctly defined' describe nothing a caller can act on.

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 statement of when to use this instead of get_summary, get_demographics, or get_election, and no prerequisites or exclusions. The only implicit guidance is that election_id defaults to 'latest'.

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