Skip to main content
Glama

Payment summary

payment_summary
Read-only

Count your Router payment requests: total is how many there were in the period (uncapped, unlike list_payments) and series is that count per day (date, value), oldest first. chargedNotDelivered is the count of failed payments in the period whose merchant charge reconciliation observed on-chain (a failed payment not yet reconciled is not counted); this is the confirmed failed-and-charged count only. countsByDeliveryStatus exposes all six ledger delivery states, including charged_unconfirmed, not_delivered and pending, with zero counts included. The latter two have unknown charge outcomes: do not count them as confirmed charges. Flag both charged buckets and explain unresolved outcomes to the user. These buckets include calls paid with your Nevermined credits, so check fundingSource and creditsStatus in list_payments before telling the user they were charged. This reports numbers of payments, not money: for what has been spent or what is left, and how much of it was charged without delivery, use get_budget, and for amounts per payment use list_payments. Reading costs nothing. Requires your Nevermined API key on the Authorization header.

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

Input Schema

NameRequiredDescriptionDefault
toNoISO-8601 upper bound on `createdAt`, inclusive. An unparseable value is an error.
fromNoISO-8601 lower bound on `createdAt`, inclusive. An unparseable value is an error.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the read-only/non-destructive safety profile, and the description adds real behavioral context: it states reading costs nothing and that a Nevermined API key is required on the Authorization header, plus the exact reconciliation semantics of `chargedNotDelivered`. It also warns that some buckets have unknown charge outcomes and instructs how to present them, though it does not discuss pagination or result size (unlikely to apply to a count).

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?

Despite its length, it is front-loaded with the core count semantics and then layers field-by-field meaning and cross-tool routing in a logical order. A few clauses are redundant ("this is the confirmed failed-and-charged count only" restates the preceding sentence), which keeps it from a 5.

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?

There is no output schema, so the description carries the full burden of explaining the returned fields, and it does so for `total`, `series`, `chargedNotDelivered`, and `countsByDeliveryStatus` including the six ledger states and zero-count behavior. For a two-optional-param, read-only counting tool with annotations covering safety, nothing an agent needs is missing.

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%, with both `from` and `to` fully documented as inclusive ISO-8601 bounds and error-on-unparseable behavior. The description only refers obliquely to "the period" and adds no syntax, default, or boundary guidance beyond the schema, so the baseline of 3 applies.

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?

Opens with a precise verb and resource ("Count your Router payment requests") and immediately scopes it as a counting/aggregation tool, explicitly contrasting the uncapped `total` with list_payments. It also names get_budget and list_payments as the tools for money rather than counts, so an agent can separate it from siblings without opening another schema.

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

Usage Guidelines5/5

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

Gives explicit routing rules: use get_budget for spend/remaining budget, list_payments for per-payment amounts, this tool for counts. It even sequences a cross-tool check ("check `fundingSource` and `creditsStatus` in `list_payments` before telling the user they were charged"), which is a rare and concrete usage constraint.

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