Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYesVoucher ID

Implementation Reference

  • 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}`); }
  • 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) }] }; }
  • 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);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jdlar1/siigo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server