Get the 29N tally sheet of a polling station
elecciones29n_get_tally_sheetRetrieve the official scanned tally sheet (acta de escrutinio) PDF for one polling station by its code, returning metadata and a resource link for the document.
Instructions
Use this tool to get the official tally sheet (acta de escrutinio) of ONE polling station:
the scanned PDF that the polling station sent after counting its votes.
WHEN TO USE IT:
When the user asks to see or check the tally sheet of a specific polling station, after
'elecciones29n_get_polling_stations' returned its code.
INPUT PARAMETERS (What it receives):
- params.mesa_code (str, required): polling station 'code' from
'elecciones29n_get_polling_stations', e.g. '2807903650A'.
- params.chamber ('congreso' default | 'senado').
WHAT IT RETURNS:
- Metadata only (never the file contents): mesa_code, label, election_code, record_id,
scope_id, sent_at, processing_state, processing_date, document_type, mime_type,
size_bytes and sha256 of the PDF.
- resource_uri: 'elecciones29n://tally-sheet/{chamber}/{mesa_code}'. Read that resource
(resources/read) to get the PDF; the result also carries it as a resource link.
- next_step and source.
OPERATING NOTES:
- Tally sheets exist only when the website reports 'scrutiny_records_available' (see
'elecciones29n_get_status') and only for polling stations already counted.
- This endpoint is inferred from the website code and has not been validated live yet.
- The figures of a tally sheet are not machine-read: use 'elecciones29n_get_scope_results'
for results.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": {
"params": "<params>"
},
"name": "elecciones29n_get_tally_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Short label shown by the website: district-section-letter. | |
| letter | No | ||
| sha256 | Yes | SHA-256 checksum (hex) of the decoded PDF. | |
| source | Yes | ||
| chamber | Yes | ||
| section | No | ||
| sent_at | No | When the tally sheet was sent (sendDate). | |
| district | No | ||
| scope_id | No | scope_id of the polling station. | |
| mesa_code | Yes | ||
| mime_type | No | application/pdf | |
| next_step | Yes | ||
| record_id | No | Identifier of the tally sheet record. | |
| size_bytes | Yes | Size of the decoded PDF in bytes. | |
| resource_uri | Yes | MCP resource that serves the PDF (read it with resources/read). | |
| document_type | No | Document type (1 = scrutiny tally sheet). | |
| election_code | Yes | Election code of the chamber in the API (2 Congreso, 3 Senado). | |
| processing_date | No | ||
| processing_state | No | Processing state reported by the API. | |
| municipality_code | No |