Skip to main content
Glama
jdlar1

Siigo MCP Server

by jdlar1

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);
Behavior2/5

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

With no annotations provided, the description carries full burden but only states it 'creates' without disclosing behavioral traits like permissions needed, whether it's idempotent, rate limits, or what happens on failure. It's a basic statement that doesn't address the mutation risks or operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste—it directly states the tool's purpose without fluff. It's appropriately sized and front-loaded, earning full marks for conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a creation tool with no annotations, no output schema, and nested objects, the description is incomplete. It doesn't explain what a credit note entails, the expected input structure, or the result, leaving significant gaps for the agent to infer.

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 description coverage is 100%, with the parameter 'creditNote' documented as 'Credit note data'. The description adds no additional meaning beyond this, so it meets the baseline of 3 where the schema does the heavy lifting but doesn't compensate with extra context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Create a new credit note' clearly states the action (create) and resource (credit note), but it's vague about what a credit note is in this context and doesn't differentiate from siblings like siigo_create_invoice or siigo_create_voucher. It's functional but lacks specificity about the business domain.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like siigo_create_invoice or siigo_get_credit_note. The description doesn't mention prerequisites, typical use cases, or exclusions, leaving the agent without context for selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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