Skip to main content
Glama

Draft an election

create_election_draft

Create a DRAFT election in the connected account: the ballot, schedule, verification, secrecy, results visibility, optional quorum and state-law checks, and optionally the voter list (emails). A draft charges nothing and contacts nobody. Returns the draft's id, what still blocks publishing, the exact price, and the finish link where the person reviews, pays if needed, and publishes. Ask the person for anything you do not know (closing date and time zone, seats, candidates) rather than guessing: this is a binding vote.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateNoTwo-letter US state code of the association (e.g. CA). Turns on that state's election-law checks before publishing.
titleYesElection title voters see, e.g. "2026 Board of Directors Election".
quorumNoOptional quorum: {type: "percentage" | "count", threshold}. E.g. {type: "percentage", threshold: 25} means a quarter of eligible voters must vote.
votersNoThe eligible voters (the roster), one per owner/member. Email addresses only; people reached by text or mail are added by the organizer on the election page.
resultsNoafter_close (default): voters see results once voting closes. live: running totals while voting is open. owner_only: only the organizer sees results.
opens_atNoWhen voting opens, ISO 8601 with offset. Omit to open when published.
timezoneYesIANA timezone of the association, e.g. America/Denver. Voters see times in it.
closes_atYesWhen voting closes, ISO 8601 with offset, e.g. 2026-11-12T17:00:00-07:00. Must be in the future.
questionsYesThe ballot, in order.
vote_typeNoWhat the vote decides, for the state-law checks.
descriptionNoOptional instructions or background shown above the ballot. Plain text.
verificationNoemail: every voter confirms a code sent to their email (included free). email_or_sms: voters may also confirm by text message (paid elections only; elections of 25 voters or fewer are email-only).
secret_ballotNoKeep who voted for what private from the organizer. Defaults to true.
community_typeNohoa or condo, when the state rules differ between them.
organization_nameNoAssociation name shown to voters and used as the email sender name. Defaults to the account's organization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations cover only the generic profile (not read-only, not destructive, not idempotent, closed-world); the description supplies the domain-specific behavior that matters: no charge, no voter contact, and the four things the response carries back (id, publishing blockers, exact price, finish link). That is real context beyond the structured fields.

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?

Four sentences, front-loaded with what the tool creates, then what it costs/costs nobody, then what it returns, then the elicitation rule. Nothing is repeated from the schema and no sentence is filler.

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

Completeness5/5

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

For a 15-parameter, nested, no-output-schema mutation tool, the description is complete: it states side effects (no charge, no contact), enumerates the return payload, and warns that the data supplied is binding. An agent has everything needed to invoke it responsibly.

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 coverage is 100%, so the baseline is 3, but the description adds semantic framing the schema does not: it groups the fifteen fields into ballot/schedule/verification/secrecy/results/quorum/roster and singles out the values the agent must elicit from the person (closing date and time zone, seats, candidates). It stops short of explaining individual field semantics like the results enum or verification tiers, which live in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Create a DRAFT election') and enumerates the exact surfaces it configures (ballot, schedule, verification, secrecy, results visibility, quorum, state-law checks, voter list). The emphasis on DRAFT also separates it from publish_election and list_elections.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is clear: a draft charges nothing and contacts nobody, so an agent knows this is the safe pre-publish step, and the closing instruction ('ask the person for anything you do not know') rules out guessing. It stops short of naming siblings explicitly, leaving the agent to infer create_election_draft vs. start_election_draft, which is the one ambiguity that matters here.

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