Skip to main content
Glama

ERPNext: Submit payment entry

erpnext_submit_payment_entry

ERPNext: Submits a draft payment entry so it posts to the General Ledger. Moves a draft Payment Entry to submitted. Submitting creates the General Ledger entries: debit to Bank or Cash, credit to the customer receivable. The allocated invoices then show Partly Paid or Paid. To reverse it, cancel the entry in ERPNext. 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
payment_entryYesPayment Entry ID from list_payment_entries or create_payment_entry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, so the description carries real weight and delivers: it discloses the accounting side effects (GL entries, invoice status changing to Partly Paid/Paid), that the operation is interim reversible via cancel, that confirmation is on by default and can be toggled, that it reaches other people, and that a Cotlet API key with app access is required. This is far beyond what the annotations provide.

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 core action and effect, and most sentences earn their place (accounting effect, reversibility, confirmation, auth). The opening two sentences are somewhat redundant ('Submits...' / 'Moves a draft Payment Entry to submitted'), 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?

There is no output schema, so the description must convey the result, which it does by explaining exactly what posting produces in the ledger and on invoice status. Combined with reversibility, confirmation, and auth notes, an agent has everything needed to invoke this correctly.

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?

Only one parameter with 100% schema coverage; the schema already states it is the Payment Entry ID sourced from list_payment_entries or create_payment_entry. The description implies the entry must be in 'draft' status, which is genuine value, but it adds no format or lookup detail beyond the schema, so the baseline 3 applies.

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 (Submit) and resource (draft Payment Entry), and goes further by naming the concrete effect: posting to the General Ledger with debit to Bank/Cash and credit to receivable. There is no direct sibling that submits a payment entry, so the distinction is inherent, and the description makes the outcome unambiguous.

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?

Clearly frames this as the step that follows creating a draft (schema points to create_payment_entry/list_payment_entries) and explicitly routes reversal to cancellation ('To reverse it, cancel the entry in ERPNext'). No exclusionary guidance for alternatives is needed since no sibling competes for this action, but it stops just short of a full when/when-not statement.

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