Skip to main content
Glama

get_payment_clients

Read-only

Get per-client payment totals from provider-synced payment data.

Returns a summary (client count, matched/unmatched, average value, refunded total, churned count) and one row per paying client with gross, refunded and net values, payment counts, last payment date, products, providers, and the matched CRM lead with setter/closer when known.

Only available to Creator, Manager and Finance roles.

Args: time_period: Time period to query. Defaults to this_month. sort: One of name, -name, gross, -gross, refunded, -refunded, net, -net. search: Filter by client name, email, lead name or product. match: any | matched | unmatched (matched = linked to a CRM lead). limit: Max clients to return (default 20, max 50).

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_payment_clients"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo-net
limitNo
matchNoany
searchNo
time_periodNothis_month

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds meaningful context beyond that: an authorization constraint (Creator/Manager/Finance roles only), the aggregate summary fields returned, and the default/maximum for limit. It stops short of stating pagination behavior beyond the cap or how unmatched clients are represented.

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 purpose, then return shape, then access constraint, then a compact Args block — a clean structure with no filler. The return-field enumeration is somewhat redundant against the existing output schema and costs a few lines, but it is scannable rather than padded.

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?

For a five-parameter read tool with a real output schema, this covers what an agent needs: purpose, access restriction, all parameter vocabularies, and defaults. The main omission is what values time_period accepts, which is the one thing an agent could plausibly get wrong when calling it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, and it does: sort values are enumerated ('name, -name, gross, -gross, refunded, -refunded, net, -net'), match is given a controlled vocabulary with an explanation of 'matched' as linked to a CRM lead, search is scoped to name/email/lead name/product, and limit gets both a default and a hard max of 50. The only remaining gap is the accepted format for time_period beyond the default.

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 first sentence gives a specific verb and resource ('Get per-client payment totals from provider-synced payment data'), and the second enumerates exactly what comes back (gross/refunded/net, payment counts, products, providers, matched CRM lead with setter/closer). The 'per-client' framing implicitly separates it from sibling payment tools like get_payment_transactions or get_payment_products, but no sibling is named, so differentiation is inferred rather than stated.

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?

Usage context is implied by the per-client aggregation framing and the match filter, but there is no explicit 'use this when...' statement or pointer to the alternative payment tools. The role restriction ('Only available to Creator, Manager and Finance roles') is a genuinely useful gating condition that tells an agent when the call will fail, which lifts it above bare implication.

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