Skip to main content
Glama

The exact price of one election

get_election_price
Read-onlyIdempotent

The price of one election in the connected account as it stands, from the same function the payment page and the publish step charge: its voter count, the tier, what the total is made of (government ID, texts for a small roster), and who pays it now (free, plan, prepaid balance, or card). Ask again after the voter list changes. Changes nothing.

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": {
      "election": "<election>"
    },
    "name": "get_election_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
electionYesThe election's id or slug, from list_elections or create_election_draft.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/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, so 'Changes nothing' largely repeats that. The description adds genuinely new context: the price comes from the authoritative function used by the payment page and publish step, and it enumerates the payer states (free, plan, prepaid balance, card) — useful context an agent cannot get from the annotations.

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 dense but front-loaded sentence that leads with the return value and the timing note, with no filler. The parenthetical '(government ID, texts for a small roster)' is somewhat clipped but earns its place as example pricing components.

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 correctly compensates by enumerating the return shape (voter count, tier, total composition, payer). Combined with 100% schema coverage on the input, an agent has enough to call and interpret this tool correctly; only failure/edge behavior for an unknown election id is unaddressed.

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 there is only one parameter, so the schema already documents 'election' (id or slug, sourced from list_elections/create_election_draft). The description adds nothing about the parameter itself, which is the correct baseline 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?

States a specific verb+resource (returns the price of one election) and additionally enumerates what the price is composed of (voter count, tier, total breakdown, payer). It is unambiguous about what it returns, but it never names or contrasts with the sibling get_price_quote, whose name suggests overlapping pricing scope, so sibling differentiation is left to inference.

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?

'Ask again after the voter list changes' gives real timing guidance, and 'as it stands' implies a current-state read. However, there is no guidance on when to prefer this over get_price_quote or get_platform_overview, so usage context is only implied.

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