Skip to main content
Glama

Moneda

get_spending_by_contact

Read-only

Get the total amount sent to a single recipient (Moneda user, external bank, or external wallet) over a window. Identify the recipient by their account ID (recipientAccountId). Amounts are in currency units (26.5 means 26.50), like get_transactions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "currency": "<currency>",
      "recipientAccountId": "<recipientAccountId>"
    },
    "name": "get_spending_by_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO 8601 UTC end of an absolute window
fromNoISO 8601 UTC start of an absolute window
periodNoRolling time window. Mutually exclusive with from/to.
currencyYes
recipientAccountIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes this as a safe read operation. The description adds useful context about recipient types and amount units, but does not explain the return shape, zero-result behavior, or any aggregation caveats.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the purpose, followed by recipient identification and amount formatting. There is no filler, and the units note is practical.

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

Completeness3/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 should ideally explain the return value more fully. It notes that amounts are in currency units but does not state whether the result is a single total, an object, or how empty periods are represented; the window parameters are adequately covered by the schema.

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 60%; the schema documents from/to/period, and the description compensates by explaining recipientAccountId and amount units. It still does not clarify the mutual exclusivity of period versus from/to or add meaning beyond the schema for the remaining parameters.

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?

The description states a specific verb and resource: get the total amount sent to a single recipient over a window. It clearly identifies the resource dimension (single recipient) and recipient types, which distinguishes it from sibling tools like get_spending_by_category and get_spending_by_merchant.

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 is implied by 'single recipient' and 'over a window,' suggesting this is for per-contact spending analysis. However, it does not explicitly say when to choose this tool over alternatives such as get_spending_by_category or get_spending_transactions, nor does it state 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