Skip to main content
Glama

Costa Rica - Voting Location (0.30 credits)

costa_rica_api_voting_location
Read-onlyIdempotent

Look up a Costa Rican voter's assigned polling place by CCCR cédula number; returns the voting station for election use.

Instructions

Costa Rica polling-place lookup (lugar de votación). Returns the voting station for a cédula. Inputs: documentType CCCR and documentNumber. Use it for elections. Use costarica_api_identity_lookup for the person's name. Costs 0.30 credits per successful call.

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": {
      "documentType": "<documentType>",
      "documentNumber": "<documentNumber>"
    },
    "name": "costa_rica_api_voting_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentTypeYesGovernment-issued document type code for this country.
documentNumberYesCosta Rican identity document number (9–13 digits).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive, and openWorld, so the bar is lowered. The description adds something the annotations cannot: a cost of 0.30 credits per successful call, implying failed lookups are not charged — meaningful pre-call information for a paid lookup.

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?

Front-loaded with the resource and the return, then inputs, then routing, then price — a sensible order with no wasted sentences. 'Use it for elections' and the repeated country/credit framing are slightly redundant against the title, keeping it from a 5.

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-parameter, single-purpose lookup with annotations carrying the safety profile, the definition is nearly sufficient: it covers purpose, inputs, alternative, and cost. With no output schema, the return value is only sketched ('the voting station') and failure behavior (not found) is left implicit.

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%, so the enum constraint (CCCR) and the 9–13 digit length rule are already documented in the schema. The description only restates the parameter names and the CCCR value, adding no format or edge-case meaning beyond structured data. 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?

States a specific verb + resource ('polling-place lookup', 'Returns the voting station for a cédula') and scopes it to Costa Rica, which distinguishes it from the bolivia/honduras voting-location siblings by name and country. An agent can tell what it yields without opening the schema.

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?

Names a concrete alternative and the condition that selects it: use costarica_api_identity_lookup for the person's name, this tool for the voting station. 'Use it for elections' is thin context, and there is no explicit when-not guidance, but the routing signal is unambiguous.

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