Skip to main content
Glama

get_votes

Read-onlyIdempotent

Fetch currently active school votes and elections from Lanis, including student council ballots, and return them in markdown or JSON for review.

Instructions

Return active votes and elections (Wahlen / GRB Wahlen) from Lanis.

Fetches currently active school votes and elections, such as student council elections or other school-wide voting events.

Args: response_format: Output format - 'markdown' (default) or 'json'.

Returns: List of active votes. JSON schema: { "count": int, "votes": [ { "id": str, "title": str, "description": str, "status": str } ] }

Error Handling: - Returns "Error: ..." on API or auth failure - Returns "No active votes." if there are none

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

Input Schema

NameRequiredDescriptionDefault
response_formatNomarkdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered by structured data. The description adds value beyond that by disclosing the failure mode ('Returns "Error: ..."' on API or auth failure) and the empty-result behavior ('No active votes.'), which an agent needs in order to handle the response correctly. The authorization requirement is only gestural ('auth failure') and is not spelled out, keeping this below 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.

Conciseness3/5

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

The front-loaded first sentence is excellent and the Args/Returns/Error Handling structure is scannable. However, the full JSON return schema is inlined even though the tool exposes an output schema, which is duplicated material that does not earn its place. The 'Error Handling' section, by contrast, is genuinely load-bearing and appropriately terse.

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?

For a single-parameter read tool with annotations and an output schema, the definition tells the agent everything needed to call it and interpret the result, including auth-failure and empty-result cases. The only gap is that authorization requirements and any pagination or result-cap behavior are not described, which for an open-world school API is a modest but real omission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is reported as 0%, so the description must carry the one parameter, and it does: it states the accepted values 'markdown' (default) or 'json' and identifies the default explicitly. The schema's own $defs text ('Output format for tool responses.') plus the enum already supplies the value list; the description confirms the default but does not explain what markdown output looks like.

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 and resource: it returns currently active votes and elections (Wahlen / GRB Wahlen) from Lanis, and it exemplifies the resource with student council elections. The 'active' scoping is explicit, so an agent can distinguish this from a hypothetical historical-votes tool. It does not name any sibling, but none of the listed siblings overlaps with this resource, so that omission is harmless rather than misleading.

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 only implied: the agent can infer 'call this when you need current school votes or elections on Lanis.' There is no statement of when not to use it and no named alternative to route to, although the sibling set contains no comparable tool, so there is little real ambiguity to resolve.

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