Skip to main content
Glama
Zenskar MCP Server

Zenskar MCP Server

Official
by zenskar

listJournalLines

listJournalLines

Retrieve paginated journal lines with debit and credit entries, filtered by customer, contract, account, currency, or posted date for accounting review.

Instructions

Retrieve a paginated list of journal lines (individual debit/credit entries) across all journal entries. Supports filtering by customer, contract, account, currency, and parent journal entry posted date. Debits and credits are in cents.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "listJournalLines"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of journal lines to return per page.
orderNoSort order. Prefix with '-' for descending. Defaults to '-created_at'.
cursorNoCursor for pagination.
currencyNoThree-letter ISO currency code (e.g. 'USD').
account_idNoFilter by GL account UUID.
invoice_idNoFilter by invoice UUID.
contract_idNoFilter by billing contract UUID.
customer_idNoFilter by customer UUID.
search_queryNoSearch query to filter journal lines.
__userContextNoInternal user context for multi-tenant authentication and approval workflow
journal_entry_idNoFilter by parent journal entry UUID.
revenue_contract_idNoFilter by revenue recognition contract UUID (distinct from billing contract_id).
performance_obligation_idNoFilter by performance obligation UUID.
journal_entry__posted_at__gteNoParent entry posted-at lower bound (inclusive). YYYY-MM-DD or ISO datetime.
journal_entry__posted_at__lteNoParent entry posted-at upper bound (inclusive).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.4

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load. It usefully discloses pagination (limit/cursor semantics implied), cross-entry scope, and the non-obvious unit convention that debits and credits are in cents — a real correctness aid. It does not state read-only safety, permission/tenant requirements, or the shape of the paginated response (e.g., that a cursor is returned).

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?

Three tight sentences with the scope stated first, then filters, then the unit caveat. The filter sentence overlaps with the fully documented schema, but it functions as a fast orientation summary rather than padding, so there is little wasted text.

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

Completeness3/5

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

For a 15-parameter, cursor-paginated list tool with no output schema and no annotations, the description covers what it returns only in the vaguest terms. It never explains the response shape or that the caller must consume a cursor to page, which is material for an agent driving pagination.

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 baseline is 3. The description adds the cents unit convention and summarizes five of the filter families, but silently omits invoice_id, revenue_contract_id, performance_obligation_id, and search_query, so it adds only partial meaning beyond the already well-documented schema.

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?

The definition names a specific verb and resource ('Retrieve a paginated list of journal lines') and immediately disambiguates the concept as 'individual debit/credit entries' under parent journal entries, which distinguishes it conceptually from listJournalEntries. It stops short of explicitly naming the sibling or stating 'use listJournalEntries for headers', so sibling routing is left partly to inference.

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 filter list ('customer, contract, account, currency, and parent journal entry posted date') hints at reporting/audit-style line-level queries, and 'across all journal entries' signals a broad scan. However, there is no explicit when-to-use statement, no when-not-to-use, and no mention of the alternative listJournalEntries for entry-level data.

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