siigo_get_voucher
Retrieve a specific accounting voucher by ID from Siigo's Colombian accounting software. Use this tool to access detailed voucher information for financial tracking and reporting.
Instructions
Get a specific voucher by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Voucher ID |
Implementation Reference
- src/siigo-client.ts:146-148 (handler)Core handler implementation that performs the authenticated GET request to the Siigo API endpoint `/v1/vouchers/${id}` to retrieve a specific voucher.async getVoucher(id: string): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('GET', `/v1/vouchers/${id}`); }
- src/index.ts:996-999 (handler)MCP server handler that extracts the voucher ID from arguments, calls SiigoClient.getVoucher, and formats the result as a JSON text response.private async handleGetVoucher(args: any) { const result = await this.siigoClient.getVoucher(args.id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- src/index.ts:495-501 (schema)Input schema definition requiring a string 'id' parameter for the voucher ID.inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Voucher ID' }, }, required: ['id'], },
- src/index.ts:492-502 (registration)Tool registration in the MCP server's tool list, including name, description, and input schema.{ name: 'siigo_get_voucher', description: 'Get a specific voucher by ID', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Voucher ID' }, }, required: ['id'], }, },
- src/index.ts:109-110 (registration)Dispatch in the CallToolRequest handler switch statement that routes 'siigo_get_voucher' calls to the specific handler.case 'siigo_get_voucher': return await this.handleGetVoucher(args);