Skip to main content
Glama
election-mcp

election-mcp

by King-AAA2012

candidate_search

Search Lok Sabha candidates or MPs by partial name or constituency to return election year, constituency, winning party, and votes for matching seats.

Instructions

Search Lok Sabha candidates / MPs by name or by constituency. Returns the year, constituency, winning party and votes for every matching seat in the sample data.

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": "candidate_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoCandidate or MP name (partial match).
constituencyNoConstituency name (partial match).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the return shape (year, constituency, winning party, votes) and flags that data comes from 'the sample data', warning the agent results may be incomplete. It does not say what happens when both filters are supplied, when neither is supplied, or whether results are capped or paginated.

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 tight sentences, no filler: the search scope leads and the return payload follows. Every clause earns its place.

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 two-optional-parameter search tool with no output schema, disclosing the returned fields and the sample-data caveat covers most of what an agent needs. The remaining gap is behavior with zero or two filters, which matters here because both parameters are optional.

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 schema already documents both fields as partial matches, so the description only needs to add combination semantics. Its phrase 'by name or by constituency' weakly suggests an either/or rather than an AND filter, which is ambiguous but adds a little beyond the schema. Baseline 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?

Names a specific verb ('Search') and a specific resource ('Lok Sabha candidates / MPs'), and enumerates the two filter dimensions. It does not, however, contrast itself with the sibling tools election_results or voter_lookup, so the agent must infer the boundary from the resource noun alone.

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?

'by name or by constituency' implies the intended lookup pattern but gives no explicit when-to-use or when-not-to-use guidance, and names no alternative for broader election queries. Usage is implied rather than stated.

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

Deploy Server

Other Tools