Skip to main content
Glama

collect_from_contact

Record a customer payment against their balance and optionally apply it to specific sales invoices to keep receivables accurate.

Instructions

Record a collection (money received) against a customer's balance, optionally matched to sales-invoice IDs via payable_ids.

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": {
      "contact_id": "<contact_id>",
      "account_id": "<account_id>",
      "amount": "<amount>",
      "date": "<date>"
    },
    "name": "collect_from_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesTransaction date (YYYY-MM-DD)
amountYesAmount
account_idYesCash/bank account ID to move the money through (see list_accounts)
contact_idYesContact ID
descriptionNoDescription
payable_idsNoInvoice/bill IDs to match this transaction against first
exchange_rateNoExchange rate to TRL if account currency differs from the document

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does disclose one meaningful behavior (optional matching to sales-invoice IDs via payable_ids), but says nothing about permissions, reversibility, what happens when payable_ids is omitted, or how matched invoices change state — significant gaps for a financial mutation.

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?

A single sentence, front-loaded with the core action and immediately qualifying the optional matching behavior. Nothing is redundant and every clause carries information.

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?

With 7 parameters, no annotations, and no output schema, the definition covers the core action and the invoice-matching nuance, and the schema fully documents parameters. However, it omits return behavior, side effects on matched invoice status, and error/partial-allocation cases that matter for a money-recording 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 description coverage is 100%, so every parameter is already documented in the schema. The description adds only a small clarification that payable_ids refers to sales invoices, which the schema calls 'Invoice/bill IDs'; baseline 3 is appropriate.

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 description states a specific verb and resource ('Record a collection') and disambiguates the direction of money flow with '(money received)', which implicitly separates it from pay_to_contact. It does not name a sibling explicitly, so it stops short of 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 Guidelines2/5

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

There is no explicit when-to-use guidance, no exclusions, and no named alternative. An agent must infer from the word 'received' that this is the inbound counterpart to pay_to_contact, which is a guess rather than stated guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.