Skip to main content
Glama

lease-schedule

Journal a loan payment

loan_journal

Return the double entry for one payment period or month: debit interest expense and loan liability, credit cash, in the cash book's account names, with an expense_add-ready payload. Give period or month, not both. Pro.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
loanYesThe loan id, e.g. LOAN-2026-0001, or its exact name
monthNoJournal every payment falling in this month, YYYY-MM. Give this or period
periodNoThe payment period to journal. Give this or month
categoryNoExpense category for the expense_add payload. Default "interest"
cash_accountNoCredit account for the payment. Default "cash"
interest_accountNoDebit account for the interest. Default "interest_expense"
liability_accountNoDebit account for the principal. Default "loan_liability"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations carry no hints (all false), so the description bears the full burden. It adds valuable context: the output uses 'cash book's account names' and is 'expense_add-ready'. However, it does not clarify whether the tool has side effects; 'Return' implies read-only, but readOnlyHint=false leaves ambiguity. No contradiction, but incomplete disclosure.

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?

The description is a single, front-loaded sentence that states the output and key constraints. The trailing 'Pro' is odd but doesn't detract. No wasted words.

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?

Given no output schema, the description explains what is returned (double entry with debits/credits) and the payload's purpose (expense_add-ready). It covers the mutual-exclusivity rule. It does not detail the exact payload structure, but that may be acceptable for a computational tool.

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 baseline is 3. The description adds the mutual-exclusivity constraint between 'period' and 'month', which is not in the schema. This helps the agent understand parameter relationships beyond individual 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?

The description states a specific verb ('Return') and resource ('double entry for one payment period or month'), and details the accounting entries (debit interest expense and loan liability, credit cash). It distinguishes itself from siblings like loan_schedule and loans_report by specifying it generates journal entries with an expense_add-ready payload.

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?

The description provides a clear usage constraint: 'Give period or month, not both.' This guides parameter usage. However, it does not explicitly contrast with sibling tools or state when to prefer this over loan_schedule or loans_report, though the purpose itself is sufficiently distinct.

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.