Skip to main content
Glama

Get poll results

get_results
Read-only

Return the overall ranking and every admitted voter run for a poll owned by this API key. Only finished runs count in the overall ranking.

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": {
      "pollId": "<pollId>"
    },
    "name": "get_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
pollIdYesThe poll ID returned by create_poll or list_polls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish this as a safe read (readOnlyHint=true, destructiveHint=false), so the description's job is to add semantics, which it does: it discloses the counting rule that only finished runs enter the overall ranking and that results are scoped to the caller's API key. It does not cover failure behavior such as an unknown poll ID or a poll owned by another key, which keeps it short of a 5.

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

Conciseness5/5

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

Two sentences, no filler, and the primary return content is front-loaded ahead of the ranking caveat. Every clause carries information an agent needs.

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

Completeness4/5

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

There is no output schema, so the description usefully characterizes the return payload as a ranking plus voter runs. For a single-parameter read-only tool with full schema coverage, this is nearly complete; only error and empty-result behavior are left unstated.

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% and the single pollId parameter is already documented in the schema with its format and provenance ('returned by create_poll or list_polls'). The description adds no parameter-level detail beyond that, so the baseline of 3 applies.

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 names a specific verb-plus-resource: it returns the 'overall ranking' plus 'every admitted voter run' for a poll. The ownership qualifier ('owned by this API key') further scopes what is returned, so an agent can tell this apart from state-changing siblings like close_poll or delete_poll without opening the schema.

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?

Usage is implied rather than stated: the poll is one 'owned by this API key' and the ranking only includes finished runs, which hints this is a post-run reporting call. There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named for cases where an agent wants unfinished or per-run detail.

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.