Skip to main content
Glama

Score fit with the voter's priorities

score_fit
Read-onlyIdempotent

How closely each choice on the voter's ballot fits the priorities the voter stated, from 0 to 100. Plain arithmetic, the same as plainballot.com: issues where a choice has no sourced position are left out, never guessed. Only use priorities the voter actually gave you.

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": {
      "address": "<address>",
      "priorities": "<priorities>"
    },
    "name": "score_fit"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes
prioritiesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive, closed-world computation, so the safety profile is covered. The description adds genuinely new behavioral context: the 0-100 output scale, that the method is plain arithmetic matching plainballot.com, and that issues lacking a sourced position are excluded rather than guessed, which tells the agent the score will not be inflated by missing data.

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?

Three tight sentences, front-loaded with what is computed and followed by the method and the input constraint. The phrase 'the same as plainballot.com' is the only mildly expendable clause, though it usefully anchors expected behavior.

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

Completeness3/5

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

For a two-parameter read-only computation with no output schema, the description covers the score range and the arithmetic basis, but it never sketches the return shape (per-choice scores, per-issue breakdown) or explains the address parameter. An agent could call it, but would not know what to expect back.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, and it only partially does: it clarifies that priorities are the voter's own stated ones and that unsourced positions drop out. It says nothing about what 'address' means (presumably the voter's ballot address) and nothing about how strength or importance weight the result, leaving half the input model opaque.

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 states a specific verb and resource: it computes a 0-100 fit score for each ballot choice against the voter's stated priorities. That is clearly distinct from the siblings get_ballot (retrieve ballot) and list_issues (enumerate issues), although the description never names those siblings explicitly.

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?

The closing sentence, 'Only use priorities the voter actually gave you,' is a real usage constraint, and the tool's role is implied by the scoring framing. However, it does not state when to call this versus get_ballot or list_issues, nor any prerequisite (for example, that sides should come from list_issues, which only appears in the schema).

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.