Skip to main content
Glama

wariwari

Record a payment

record_payment

Use this when one member paid another back. fromParticipantToken paid toParticipantToken amountCents, in minor units. get_group's suggested payments say who should pay whom to settle up.

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": {
      "groupToken": "<groupToken>",
      "fromParticipantToken": "<fromParticipantToken>",
      "toParticipantToken": "<toParticipantToken>",
      "amountCents": "<amountCents>"
    },
    "name": "record_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDefaults to today, or to the day in `Recorded-At`.
currencyNoDefaults to the group currency.
timeOfDayNoTime of day, `HH:MM` (24-hour). Defaults to the time it is recorded, in Japan time.
groupTokenYesThe group's token, from `listGroups` or `listSearchResults`.
amountCentsYesPayment amount in minor units.
descriptionNoBlank or omitted uses the default "From → To" label.
idempotencyKeyNoA UUID you make up for this call. If the call fails or gets no answer and you try again, send the same UUID so nothing is added twice. Use a new one for each new thing you add.
toParticipantTokenYesThe participant who received the payment.
fromParticipantTokenYesThe participant who paid.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / timeOfDay / $ref
      Removed value: -"#/$defs/TimeOfDay"
    • addedInput schema / properties / timeOfDay / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/TimeOfDay"
      +  }
      +]
    • addedInput schema / properties / timeOfDay / description
      Added value: +"Time of day, `HH:MM` (24-hour). Defaults to the time it is recorded, in Japan time."
  2. Changed12 schema fields changed
    • changedInput schema / $defs / Token / description
      Previous value: -"Resource token. 24 characters of base58 (`SecureRandom.base58(24)` —\nthe alphabet excludes the visually-confusable `0`, `O`, `I`, `l`).\nTokens are stable across edits. Most public resources receive a\nserver-generated token on creation; group creation may also accept\nclient-supplied participant tokens for offline/import flows.\n"New value: +"Resource token: 24 base58 characters (the alphabet leaves out the\nlook-alikes `0`, `O`, `I` and `l`). A token never changes. The server\ngenerates one when a create sends none; a client may choose its own for a\ntransaction, participant, category or recurring expense, so a write queued\noffline already knows the token it will have.\n"
    • changedInput schema / properties / amountCents / description
      Previous value: -"Payment amount in minor units. Must be positive."New value: +"Payment amount in minor units."
    • changedInput schema / properties / currency / description
      Previous value: -"Defaults to the group currency when omitted."New value: +"Defaults to the group currency."
    • addedInput schema / properties / date / description
      Added value: +"Defaults to today, or to the day in `Recorded-At`."
    • changedInput schema / properties / description / description
      Previous value: -"Blank uses the default \"From → To\" label for the current\n`fromToken` and `toToken`. On update, omitting the key keeps the\ncurrent description.\n"New value: +"Blank or omitted uses the default \"From → To\" label."
    • addedInput schema / properties / fromParticipantToken
      Added value: +{
      +  "allOf": [
      +    {
      +      "$ref": "#/$defs/Token"
      +    }
      +  ],
      +  "description": "The participant who paid."
      +}
    • removedInput schema / properties / fromToken
      Removed value: -{
      -  "allOf": [
      -    {
      -      "$ref": "#/$defs/Token"
      -    }
      -  ],
      -  "description": "Token of the participant who paid."
      -}
    • addedInput schema / properties / groupToken / description
      Added value: +"The group's token, from `listGroups` or `listSearchResults`."
    • addedInput schema / properties / idempotencyKey
      Added value: +{
      +  "description": "A UUID you make up for this call. If the call fails or gets no answer and you try again, send the same UUID so nothing is added twice. Use a new one for each new thing you add.",
      +  "format": "uuid",
      +  "type": "string"
      +}
    • addedInput schema / properties / toParticipantToken
      Added value: +{
      +  "allOf": [
      +    {
      +      "$ref": "#/$defs/Token"
      +    }
      +  ],
      +  "description": "The participant who received the payment."
      +}
    • removedInput schema / properties / toToken
      Removed value: -{
      -  "allOf": [
      -    {
      -      "$ref": "#/$defs/Token"
      -    }
      -  ],
      -  "description": "Token of the participant who received the payment."
      -}
    • changedInput schema / required
      Previous value: -[
      -  "groupToken",
      -  "fromToken",
      -  "toToken",
      -  "amountCents"
      -]New value: +[
      +  "groupToken",
      +  "fromParticipantToken",
      +  "toParticipantToken",
      +  "amountCents"
      +]
  3. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive write operation. The description adds that it represents a member-to-member repayment, but it does not disclose broader behavioral details such as effects on balances, required permissions, or response behavior.

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?

The description is short, front-loaded with the triggering condition, and each sentence contributes useful information without filler. The telegraphic parameter sentence is compact and clear in context.

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?

For a 9-parameter mutation tool without an output schema, the description covers the core purpose and points to where suggested payments come from. However, it leaves out side effects, response expectations, and direct differentiation from related write tools.

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 the schema already documents all parameters thoroughly. The description reinforces direction and amount semantics, but mostly restates what the schema provides; the get_group suggestion note is useful but not deeply parameter-specific.

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: recording a payment when one member paid another back. It is clear what the tool does, but it does not explicitly distinguish it from siblings such as update_payment or add_expense.

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

Usage Guidelines4/5

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

It gives clear usage context with 'Use this when one member paid another back' and points to get_group's suggested payments for determining who should pay whom. It lacks explicit when-not-to-use guidance or direct sibling alternatives.

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