Skip to main content
Glama
Billin MCP Server

Billin MCP Server

by AnderRahe

Create Payment

create_payment

Record income or expense payments and link them to a document or contact for accurate Billin accounting.

Instructions

Record a payment (income or expense). Link it to a document via documentsIds or to a contact via contactId (mutually exclusive — provide one or neither).

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": {
      "operationDate": "<operationDate>",
      "amount": "<amount>",
      "type": "<type>"
    },
    "name": "create_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesINCOME = payment received, EXPENSE = payment made
amountYesPayment amount (minimum 0.01)
methodNoPayment method
contactIdNoContact UUID to link this payment to. Mutually exclusive with documentsIds.
descriptionNoPayment description (max 250 chars)
documentsIdsNoArray with a single document/invoice UUID to link this payment to. Mutually exclusive with contactId.
operationDateYesPayment date in YYYY-MM-DD format (required)
accountingAccountIdNoRelated accounting account UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description must carry the full behavioral burden, and it discloses only that this is a recording operation plus the mutual-exclusivity constraint already present in the schema. For a financial write it says nothing about side effects (e.g. whether linking to an invoice marks it paid), required permissions, idempotency, currency handling, or whether amount must match the linked document.

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?

Two short sentences, front-loaded with the core action and followed by the one non-obvious linking constraint. There is no filler or redundant phrasing.

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?

An eight-parameter financial mutation with no annotations and no output schema needs more than identifying the resource. The description omits what the tool returns, how payment linkage affects the referenced document or contact, and what preconditions or failure modes exist.

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 coverage is 100%, so all eight parameters including the two enums and the required date/amount are already documented in structured form. The description only restates the documentsIds/contactId exclusivity that the schema also states, adding no syntax, format, or default information beyond it.

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

Purpose4/5

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

States a specific verb (record) and resource (payment) plus the income/expense scope, which is clearer than the title alone. It does not differentiate itself from siblings such as create_expense or create_receipt, which an agent would need to distinguish a payment from an expense record.

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

Usage Guidelines3/5

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

The mutual-exclusivity rule for documentsIds vs contactId gives concrete guidance on how to shape the call. However, there is no guidance on when to use this tool versus create_expense or create_invoice, nor any note on prerequisites like an existing contact or document.

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