Skip to main content
Glama

get_polls

Read-onlyIdempotent

Final-week average, retrospective model, initial exit polls, result and recent individual polls. Eligible poll dates are fieldwork end dates. include_publication_only adds excluded records with unconfirmed fieldwork_end and the 2026 publisher channel aliases.

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_polls"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of recent individual polls to return, 0–25; default 5. Zero omits recent polls while retaining aggregates.
election_idNolatest, a Knesset ID such as k26, or full YYYY-MM-DD date. A bare 2019 is ambiguous.latest
include_seriesNoInclude the historical polling time series when true; default false.
include_publication_onlyNoInclude records with publication dates but unconfirmed fieldwork dates; these remain excluded from calculated averages. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / include_publication_only / description
      Added value: +"Include records with publication dates but unconfirmed fieldwork dates; these remain excluded from calculated averages. Default false."
    • addedInput schema / properties / include_series / description
      Added value: +"Include the historical polling time series when true; default false."
    • addedInput schema / properties / limit / description
      Added value: +"Number of recent individual polls to return, 0–25; default 5. Zero omits recent polls while retaining aggregates."
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive, closed-world profile, so the bar is lower; the description still adds real semantics beyond them, notably that eligible poll dates are fieldwork end dates and that include_publication_only pulls in records excluded from calculated averages. The trailing '2026 publisher channel aliases' phrase is unexplained jargon that reduces clarity, and no return shape or ordering is described.

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 short, front-loaded sentences with no filler, and the payload enumeration comes first. The opening sentence is a bare noun phrase without a verb, and the final clause about 2026 aliases is cryptic rather than informative, which keeps it from a 5.

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 no output schema and four parameters, the description should carry more of the burden of explaining what comes back — it names the aggregate components but never says how they are structured, what a 'retrospective model' object contains, or how include_series alters the response. The fieldwork-date and exclusion rules are genuinely useful, but a list-returning tool with no output schema needs more than two fragments.

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 coverage is 100%, so limit, election_id, include_series and include_publication_only are already documented in more detail than the description provides. The description adds only incremental meaning: the fieldwork-end-date eligibility rule and the mention of publisher channel aliases, which is otherwise the only behavior not already in the schema. Baseline 3 applies when the schema does the heavy lifting.

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 enumerates the specific payload contents (final-week average, retrospective model, initial exit polls, result, recent individual polls), which tells an agent this retrieves polling data rather than generic election metadata like get_election or get_summary. It never states an explicit verb or resource in a full sentence, so the reader must infer 'returns polls for an election' from the noun list, keeping it below a 5.

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 when-to-use guidance and no reference to any sibling tool (get_election, get_summary, list_elections, get_analytics) as an alternative. The only implicit routing signal is the parameter behavior (limit=0 omits recent polls), which is in the schema rather than the description.

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