Skip to main content
Glama
Cresium

Cresium MCP Server

Official
by Cresium

create_invoices

Generate invoices for accounts receivable to track expected payments from customers. Specify amount, payer details, status, and optional notes.

Instructions

Create one or more invoices (accounts receivable). Each invoice represents an amount the company expects to receive from a customer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
invoicesYesArray of invoice objects to create

Implementation Reference

  • Tool registration and schema definition for 'create_invoices' in the TOOL_DEFINITIONS array. Defines the tool name, description, and input schema including required fields (amount, payerNationalIdentifier, payerName, status) and optional fields for creating invoices (accounts receivable).
    {
      name: "create_invoices",
      description:
        "Create one or more invoices (accounts receivable). Each invoice represents an amount the company expects to receive from a customer.",
      inputSchema: {
        type: "object" as const,
        properties: {
          invoices: {
            type: "array",
            items: {
              type: "object",
              properties: {
                amount: { type: "number", description: "Invoice amount" },
                payerNationalIdentifier: {
                  type: "string",
                  description: "Payer CUIT/CUIL",
                },
                payerName: { type: "string", description: "Payer name" },
                status: {
                  type: "string",
                  enum: ["PENDING", "EXPIRED", "PAID"],
                },
                description: { type: "string" },
                internalNote: { type: "string" },
                payerInternalNote: { type: "string" },
                payerEmail: { type: "string" },
                expiresAt: { type: "string" },
                createdAt: { type: "string" },
                externalId: { type: "string" },
                fileUrl: { type: "string" },
              },
              required: [
                "amount",
                "payerNationalIdentifier",
                "payerName",
                "status",
              ],
            },
            description: "Array of invoice objects to create",
          },
        },
        required: ["invoices"],
      },
    },
  • Handler implementation for 'create_invoices' in the handleToolCall method. Makes a POST request to the /v3/invoice/ API endpoint with the invoices array from the arguments to create one or more invoices (accounts receivable).
    case "create_invoices":
      result = await this.request(
        "POST",
        "/v3/invoice/",
        args.invoices
      );
      break;

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/Cresium/cresium-mcp-server'

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