Skip to main content
Glama

Taokeh MCP server

Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as mcp. If you published it, claim ownership there.

Search journal entries

search_journal
Read-only

Searches the general ledger's journal entries: every posting, whatever created it (a manual journal, a scanned receipt, an invoice, a bank row, a paid expense, payroll, depreciation). Returns each entry with its balanced lines (account code and name, debit, credit, line description), so it shows how something was booked. Filters, in any combination: date range, text (case-insensitive, matched against the entry memo and its line descriptions), accountCode (entries touching that account), source (what created it) and an amount range on the entry's total debits. At least one filter is required; the whole ledger is never returned in one call. Newest first, capped, with a more flag. search_expenses shows what the /expenses register holds; this shows every ledger entry, including journal-era postings the register never covered. Read-only.

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": "search_journal"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
refNoNot a filter on this tool. A journal entry has no reference field — search its memo and line descriptions with `text`.
fromNo
memoNoNot a filter on this tool. Pass memo text as `text` (it matches the entry memo AND every line description).
textNoPartial text matched against the entry memo and its line descriptions (case-insensitive contains).
partyNoNot a filter on this tool. The ledger has no party column — search the name as `text`, or find the document with search_documents.
refNoNoNot a filter on this tool. A journal entry has no reference field — search its memo and line descriptions with `text`.
numberNoNot a filter on this tool. A journal entry has no document number — search its memo and line descriptions with `text`, or find the document itself with search_documents.
sourceNoWhat created the entry (exact, case-insensitive), one of: 'MANUAL', 'SALE', 'PURCHASE', 'ADJUSTMENT', 'BANK', 'CREDIT_NOTE', 'DEBIT_NOTE', 'PAYROLL', 'IMPORTED_SERVICE', 'FX_REVAL', 'DEPRECIATION', 'ASSET_DISPOSAL', 'EXPENSE', 'LOAN', 'REVENUE_RECOGNITION', 'ASSET_ACQUISITION', 'BANK_OPENING'. Omit for all.
accountNoNot a filter on this tool. Pass the chart-of-accounts code as `accountCode` (exact).
maxAmountNoMaximum entry size, measured on the entry's total debits (MYR).
minAmountNoMinimum entry size, measured on the entry's total debits (MYR).
referenceNoNot a filter on this tool. A journal entry has no reference field — search its memo and line descriptions with `text`.
accountCodeNoRestrict to entries that have a line on this account code (exact).
descriptionNoNot a filter on this tool. Pass the text as `text` (it matches the entry memo AND every line description).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed10 schema fields changed
    • changedInput schema / properties / account / description
      Previous value: -"NOT a filter on this tool. Pass the chart-of-accounts code as `accountCode` (exact)."New value: +"Not a filter on this tool. Pass the chart-of-accounts code as `accountCode` (exact)."
    • changedInput schema / properties / description / description
      Previous value: -"NOT a filter on this tool. Pass the text as `text` (it matches the entry memo AND every line description)."New value: +"Not a filter on this tool. Pass the text as `text` (it matches the entry memo AND every line description)."
    • changedInput schema / properties / memo / description
      Previous value: -"NOT a filter on this tool. Pass memo text as `text` (it matches the entry memo AND every line description)."New value: +"Not a filter on this tool. Pass memo text as `text` (it matches the entry memo AND every line description)."
    • changedInput schema / properties / number / description
      Previous value: -"NOT a filter on this tool. A journal entry has no document number — search its memo and line descriptions with `text`, or find the document itself with search_documents."New value: +"Not a filter on this tool. A journal entry has no document number — search its memo and line descriptions with `text`, or find the document itself with search_documents."
    • changedInput schema / properties / party / description
      Previous value: -"NOT a filter on this tool. The ledger has no party column — search the name as `text`, or find the document with search_documents."New value: +"Not a filter on this tool. The ledger has no party column — search the name as `text`, or find the document with search_documents."
    • changedInput schema / properties / ref / description
      Previous value: -"NOT a filter on this tool. A journal entry has no reference field — search its memo and line descriptions with `text`."New value: +"Not a filter on this tool. A journal entry has no reference field — search its memo and line descriptions with `text`."
    • changedInput schema / properties / refNo / description
      Previous value: -"NOT a filter on this tool. A journal entry has no reference field — search its memo and line descriptions with `text`."New value: +"Not a filter on this tool. A journal entry has no reference field — search its memo and line descriptions with `text`."
    • changedInput schema / properties / reference / description
      Previous value: -"NOT a filter on this tool. A journal entry has no reference field — search its memo and line descriptions with `text`."New value: +"Not a filter on this tool. A journal entry has no reference field — search its memo and line descriptions with `text`."
    • changedInput schema / properties / source / description
      Previous value: -"The door that created the entry (exact, case-insensitive). One of: MANUAL, SALE, PURCHASE, ADJUSTMENT, BANK, CREDIT_NOTE, DEBIT_NOTE, PAYROLL, IMPORTED_SERVICE, FX_REVAL, DEPRECIATION, ASSET_DISPOSAL, EXPENSE, LOAN, REVENUE_RECOGNITION, ASSET_ACQUISITION, BANK_OPENING. Omit for all."New value: +"What created the entry (exact, case-insensitive), one of: 'MANUAL', 'SALE', 'PURCHASE', 'ADJUSTMENT', 'BANK', 'CREDIT_NOTE', 'DEBIT_NOTE', 'PAYROLL', 'IMPORTED_SERVICE', 'FX_REVAL', 'DEPRECIATION', 'ASSET_DISPOSAL', 'EXPENSE', 'LOAN', 'REVENUE_RECOGNITION', 'ASSET_ACQUISITION', 'BANK_OPENING'. Omit for all."
    • changedInput schema / properties / text / description
      Previous value: -"Partial text matched against the entry memo AND its line descriptions (case-insensitive contains)."New value: +"Partial text matched against the entry memo and its line descriptions (case-insensitive contains)."
  3. Changed8 schema fields changed
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "NOT a filter on this tool. Pass the chart-of-accounts code as `accountCode` (exact)."
      +}
    • addedInput schema / properties / description
      Added value: +{
      +  "description": "NOT a filter on this tool. Pass the text as `text` (it matches the entry memo AND every line description)."
      +}
    • addedInput schema / properties / memo
      Added value: +{
      +  "description": "NOT a filter on this tool. Pass memo text as `text` (it matches the entry memo AND every line description)."
      +}
    • addedInput schema / properties / number
      Added value: +{
      +  "description": "NOT a filter on this tool. A journal entry has no document number — search its memo and line descriptions with `text`, or find the document itself with search_documents."
      +}
    • addedInput schema / properties / party
      Added value: +{
      +  "description": "NOT a filter on this tool. The ledger has no party column — search the name as `text`, or find the document with search_documents."
      +}
    • addedInput schema / properties / ref
      Added value: +{
      +  "description": "NOT a filter on this tool. A journal entry has no reference field — search its memo and line descriptions with `text`."
      +}
    • addedInput schema / properties / refNo
      Added value: +{
      +  "description": "NOT a filter on this tool. A journal entry has no reference field — search its memo and line descriptions with `text`."
      +}
    • addedInput schema / properties / reference
      Added value: +{
      +  "description": "NOT a filter on this tool. A journal entry has no reference field — search its memo and line descriptions with `text`."
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/destructive/openWorld, so the safety profile is covered; the description still adds real behavior: newest-first ordering, a result cap with a `more` flag, the mandatory-filter rule, and the shape of each returned entry (balanced lines with account code/name, debit, credit, line description). That is meaningful context beyond the annotations.

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 action and return shape, then filters, then ordering/limits, then the sibling distinction. It is a single dense paragraph with parenthetical source lists that are slightly long, but no sentence is filler.

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?

With no output schema, the description carries the return contract itself (entry plus balanced lines, field list, ordering, cap, `more`), and it states the mandatory-filter precondition. Nothing an agent needs to invoke it correctly appears 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 high (87%), so the baseline is 3; the description still clarifies semantics in prose — `text` matches the entry memo AND line descriptions case-insensitively, `accountCode` means entries touching that account, and amount bounds are measured on total debits. It adds the 'in any combination' framing but largely restates what the schema already documents per-property.

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 ('Searches the general ledger's journal entries') and enumerates the entry sources it spans, which makes the scope concrete. It explicitly contrasts with search_expenses ('this shows every ledger entry, including journal-era postings the register never covered'), so an agent can separate the two without opening schemas.

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?

Gives a hard usage constraint ('At least one filter is required; the whole ledger is never returned in one call') and names the alternative for the expenses register. It does not enumerate when a different search tool (search_document_lines, search_documents) would be preferable, though the schema redirects cover much of that.

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