Skip to main content
Glama
Splits MCP Server

Splits MCP Server

Official

invoices_create

Creates an invoice and emails it to the payer; optionally sets up a recurring schedule that sends a new invoice before each due date.

Instructions

Create an invoice and email it to --payer-email right away. Without --payer-email, no email is sent. With --interval and --due-date-days, it also creates a schedule that emails a new invoice before each due date; when the first issue date is still in the future or the first due date has passed, only the schedule is created and the next daily run picks it up. Requires an owner-scoped key for an org owner and the Pro plan.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "payeeName": "<payeeName>",
      "payerName": "<payerName>",
      "amount": "<amount>",
      "chainId": "<chainId>",
      "tokenAddress": "<tokenAddress>",
      "dueDate": "<dueDate>"
    },
    "name": "invoices_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoNoMemo shown on the invoice
amountYesAmount in token units (e.g. 1500.00)
chainIdYesChain the payer pays on
dueDateYesDue date, ISO 8601 (e.g. 2026-11-01T00:00:00Z). With a schedule, the first due date. Dates count as UTC calendar days.
ccEmailsNoComma-separated emails that get a copy (max 10). Requires --payer-email.
intervalNoRepeat the invoice on each due date. ONCE sends a single invoice on its issue date. Requires --due-date-days.
payeeNameYesName of who is billing
payerNameYesName of who pays
workspaceNoWorkspace alias to run this command in (see `splits auth workspaces`). Overrides SPLITS_WORKSPACE and the active workspace.
payerEmailNoEmail the invoice is sent to
dueDateDaysNoDays between each issue date and its due date. Requires --interval.
tokenAddressYesToken the payer pays in
accountAddressNoAccount that receives the payment. Auto-selected if the org has one account.
allowFiatPaymentsNoLet the payer pay by bank transfer. Defaults to true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses the side effect (an email is sent immediately), the suppression condition, the deferred-execution behavior via the daily run, and the auth/plan requirements. It does not cover idempotency, whether the created invoice is returned, or that fiat payments default to true, which are meaningful gaps for a mutating 14-parameter tool.

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

Conciseness4/5

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

Front-loaded with the primary action and email behavior, then dependencies, then edge case, then prerequisites — a sensible priority order with no filler. The third sentence is dense and runs several clauses together, which slightly hurts scanability.

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

Completeness4/5

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

For a 14-parameter mutation tool with no annotations and no output schema, the description covers side effects, scheduling semantics, auth scope, and plan gating — the things an agent most needs before invoking. It does not say what the call returns (invoice id/handle) or clarify the CLI-flag naming (--payer-email) versus the schema's payerEmail field, which is a minor but real source of confusion.

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%, so every parameter is already documented at the field level, including the cross-parameter 'Requires --payer-email' and 'Requires --due-date-days' notes. The description mostly restates those dependencies rather than adding new meaning; its only marginal addition is framing dueDate as the first due date when a schedule exists, which the schema also states.

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

Purpose5/5

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

States a concrete verb+resource ('Create an invoice') plus the immediate side effect ('email it to --payer-email right away'), which unambiguously separates it from invoices_get and invoices_list. It also scopes the tool further by describing the schedule-creation variant in the same opening sentence.

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

Usage Guidelines4/5

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

Gives explicit conditional usage: without --payer-email no email is sent; with --interval and --due-date-days a schedule is created instead of/in addition to an invoice; and it explains the edge case where only the schedule is created and a daily run picks it up. Prerequisites (owner-scoped key for org owner, Pro plan) are stated. It stops short of naming sibling alternatives for the non-scheduling path, which keeps it off a 5.

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

Deploy Server

Other Tools