Skip to main content
Glama

ERPNext: Create payment entry

erpnext_create_payment_entry

ERPNext: Saves a draft Receive payment entry allocated to one or more invoices. Saves a Payment Entry with the payment type Receive, the customer as party, the Mode of Payment, the bank Reference No and Reference Date, and the invoices it pays under References. A draft does not post to the General Ledger; call submit_payment_entry for that. If the amount is larger than the invoices, the remainder stays as an unallocated advance. By default you confirm each call; you can switch that off for this tool. Reaches other people: confirm with the user before each call. Needs the user's Cotlet API key with access to this app.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
partyYesCustomer ID from list_customers.
invoicesNoSales Invoice IDs to allocate the payment to, oldest due date first.
paid_amountYesAmount received, in the currency of the bank account.
posting_dateNoYYYY-MM-DD. Default: today.
reference_noNoBank or cheque reference.
reference_dateNoDate on the bank reference, YYYY-MM-DD.
mode_of_paymentNoMode of Payment name from your site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare non-read-only, non-destructive, open-world, but the description goes well beyond them: a draft does not post to the GL, overpayment remains an unallocated advance, each call is confirmed by default, and the action reaches other people requiring user confirmation. It also discloses the API key requirement, covering auth context.

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 what the tool does before behavioral caveats, and every clause carries information. The two adjacent confirmation sentences ('you confirm each call' and 'confirm with the user before each call') are slightly redundant, costing a little tightness.

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

Completeness5/5

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

For a draft-create mutation with no output schema, it covers document state (draft, not posted), allocation and overpayment behavior, the submit path, confirmation requirements, and auth needs. Nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: 'party' is the customer, invoices are allocated under References in oldest-due-first order, and payment amounts exceeding the invoices leave an unallocated advance. This clarifies behavior of paid_amount and invoices beyond the field descriptions.

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 specific verb and resource ('Saves a draft Receive payment entry'), specifies the resulting document type and its allocation scope, and explicitly distinguishes itself from the erpnext_submit_payment_entry sibling. An agent can tell this apart from submit_payment_entry without opening either schema.

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

Usage Guidelines5/5

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

Names the alternative ('call submit_payment_entry') and the condition that selects it (posting to the General Ledger). It also states the confirmation default and how to change it, giving explicit operational guidance rather than leaving it to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources