Skip to main content
Glama

search_payments

Search payments linked to invoices, proforma invoices, orders, or supplier invoices.

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based (default 1)
date_toNoFilter payment date <= this date (YYYY-MM-DD)
currencyNoFilter by currency code, e.g. "RON", "EUR"
order_idNoFilter by order ID
per_pageNoResults per page (default 20, max 100)
date_fromNoFilter payment date >= this date (YYYY-MM-DD)
invoice_idNoFilter by invoice ID
payment_typeNoFilter by payment method, e.g. "cash", "bank"
proforma_invoice_idNoFilter by proforma invoice ID
supplier_invoice_idNoFilter by supplier invoice (supplier document) ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. 'Search' implies a read, but the description says nothing about result shape, pagination behavior, filter combination logic (AND vs OR), or what happens with no filters — all important for a 10-parameter query tool.

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?

A single front-loaded sentence with no filler, which is structurally clean. It is arguably too terse for a 10-parameter tool, but there is no wasted language to cut.

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

Completeness2/5

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

With 10 optional parameters, no annotations, and no output schema, the description should explain filtering semantics (are criteria combined?), empty-filter default behavior, and roughly what is returned. None of this is present, leaving significant gaps for an agent to guess at.

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 description coverage is 100%, so every parameter is already documented with type and meaning (dates in YYYY-MM-DD, per_page max 100, etc.). The description only restates the document-linkage theme that the id parameters already convey, adding no syntax or format detail beyond the 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?

States a specific verb and resource ('search payments') plus the document types payments can be linked to, which lets an agent distinguish it from sibling searches like search_invoices or search_receipts. It does not explicitly contrast with search_receipts or report_payments_vs_invoiced, so it falls just short of full sibling differentiation.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus alternatives such as search_receipts, report_payments_vs_invoiced, or the individual search_* document tools. The only implied usage is the topic overlap with the name; nothing states preconditions or exclusions.

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