Skip to main content
Glama

siigo_create_credit_note

Create a new credit note in Siigo accounting software to issue refunds or adjust invoice amounts.

Instructions

Create a new credit note

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
creditNoteYesCredit note data

Implementation Reference

  • MCP tool handler function that delegates to SiigoClient.createCreditNote and formats the response.
    private async handleCreateCreditNote(args: any) { const result = await this.siigoClient.createCreditNote(args.creditNote); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • SiigoClient method implementing the API call to create a credit note via POST to /v1/credit-notes.
    async createCreditNote(creditNote: any): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('POST', '/v1/credit-notes', creditNote); }
  • src/index.ts:468-478 (registration)
    Tool registration in getTools() method, including name, description, and input schema.
    { name: 'siigo_create_credit_note', description: 'Create a new credit note', inputSchema: { type: 'object', properties: { creditNote: { type: 'object', description: 'Credit note data' }, }, required: ['creditNote'], }, },
  • Dispatch case in the main CallToolRequestSchema handler that routes to the specific tool handler.
    case 'siigo_create_credit_note': return await this.handleCreateCreditNote(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