Skip to main content
Glama

Money Magician

get_top_vendors

Read-only

Get top vendors by expense spending. Returns a UNIFIED vendor list where every entry has an explicit "currency" field, a "comparable" flag (true = primary currency, false = foreign), and "converted_to_primary" field. converted_to_primary is null when no conversion data exists, or { amount, currency, invoices_converted, invoices_total, source } when bank reconciliation has recorded actual settlement amounts. Includes a top-level "currency_warning". Amounts in different currencies are NOT comparable or summable. For calendar-year periods, date_from is YYYY-01-01 and date_to is YYYY-12-31. Requires the Start or Business plan.

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

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of top vendors to return (default: 10)
date_toNoEnd date (YYYY-MM-DD). For year queries use YYYY-12-31
date_fromNoStart date (YYYY-MM-DD). For year queries use YYYY-01-01

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true; the description adds substantial behavior the agent could not otherwise know: entries carry currency, a comparable flag distinguishing primary vs foreign currency, converted_to_primary semantics including the null case and the reconciliation source, and a top-level currency_warning. The explicit warning that amounts in different currencies are not comparable or summable is exactly the kind of cross-currency hazard an agent must know before aggregating.

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?

The lead sentence front-loads purpose and the currency semantics follow in a logical order ending with the plan requirement. The middle passage is dense but every clause describes actual return-shape behavior; only the year-format sentence is redundant with the schema.

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 burden of describing return values and does so thoroughly: entry fields, the comparable flag, the two-state converted_to_primary, and the currency_warning. Plan gating and cross-currency non-comparability are both surfaced, leaving nothing an agent needs missing for a three-optional-parameter read tool.

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 all three parameters are already documented, and the description's calendar-year note (date_from YYYY-01-01 / date_to YYYY-12-31) largely restates the schema's own wording. It adds no meaning for limit, so it does not exceed the baseline.

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?

"Get top vendors by expense spending" names a specific verb (get), resource (vendors), ranking dimension (top by expense spending), so the operation is unambiguous. It does not explicitly differentiate itself from the sibling get_vendor_summary, which is the only thing keeping it from a 5.

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?

It gives one real precondition ("Requires the Start or Business plan") and date-format guidance for year queries, which implies when the tool applies. However, it never states when to prefer this over get_vendor_summary or get_expenses_by_category, so routing guidance is left to inference.

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