Skip to main content
Glama

BallotWatch

Compare two members

compare_members
Read-onlyIdempotent

How often two members of the same chamber voted the same way this Congress: the roll calls both voted Yea or Nay on, how many matched, and their ten most recent differing votes. A plain count over the whole record, not a score.

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": {
      "bioguide_id_a": "<bioguide_id_a>",
      "bioguide_id_b": "<bioguide_id_b>"
    },
    "name": "compare_members"
  }
}

Input Schema

NameRequiredDescriptionDefault
bioguide_id_aYesBioguide ID of the first member, e.g. P000197
bioguide_id_bYesBioguide ID of the second member, in the same chamber as bioguide_id_a, e.g. S000148

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / bioguide_id_a / description
      Previous value: -"Bioguide ID, e.g. P000197"New value: +"Bioguide ID of the first member, e.g. P000197"
    • removedInput schema / properties / bioguide_id_b / $ref
      Removed value: -"#/properties/bioguide_id_a"
    • addedInput schema / properties / bioguide_id_b / description
      Added value: +"Bioguide ID of the second member, in the same chamber as bioguide_id_a, e.g. S000148"
    • addedInput schema / properties / bioguide_id_b / maxLength
      Added value: +7
    • addedInput schema / properties / bioguide_id_b / type
      Added value: +"string"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive behavior, so the bar is lower; the description still adds real substance by disclosing the scope limitation (this Congress only), the same-chamber constraint, and the returned payload (match counts plus the ten most recent differing votes). The line 'a plain count over the whole record, not a score' preempts misinterpretation of the number as a normalized similarity metric, which is genuinely useful behavioral framing.

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?

The core metric is front-loaded and every clause contributes: denominator, match count, and the ten most recent disagreements. It is a single dense run-on sentence, so structure could be tighter, but there is no filler.

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?

With no output schema, the description does the work of explaining the return value, and it does so concretely. The scope and chamber constraints are covered; the main remaining gap is failure behavior when IDs span different chambers, which is only implied by the schema constraint.

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%, with both bioguide IDs documented and exemplified, so the schema already carries parameter meaning. The description reinforces the same-chamber requirement for the two IDs but adds no format or validation detail beyond the schema; baseline 3 applies.

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?

The description names a specific computation over a specific resource: how often two members of the same chamber voted alike in this Congress, with the underlying denominator (roll calls both voted on) spelled out. An agent can distinguish this from get_member_votes or get_roll_call, which return one member's or one vote's data rather than a pairwise comparison.

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 by the pairwise framing and the 'same chamber' and 'this Congress' scope, which tells the agent when the tool is applicable. However, it never states when to prefer this over pulling each member's voting record via get_member_votes, nor what to do for members of different chambers.

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.