Skip to main content
Glama

wariwari

Repeat an expense

create_recurring_expense

Use this when the user wants an expense added on a schedule, such as monthly rent. It is posted on startsOn and then every interval weeks, months or years; a startsOn in the past begins at the next date from today.

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>",
      "description": "<description>",
      "amountCents": "<amountCents>",
      "currency": "<currency>",
      "paidByParticipantToken": "<paidByParticipantToken>",
      "splitType": "<splitType>",
      "splits": "<splits>",
      "cadence": "<cadence>",
      "startsOn": "<startsOn>"
    },
    "name": "create_recurring_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
splitsYesWho shares each expense, each member once. For `equal` give only tokens; for `amount`, amounts adding up to `amountCents`; for `percentage`, percentages adding up to 100; for `shares`, share counts.
cadenceYesThe unit `interval` counts in.
currencyYesThe currency each expense is paid in.
intervalNoHow many `cadence` units apart the expenses are, such as 2 with `weekly` for every other week.
startsOnYesThe first date, `YYYY-MM-DD`, from which the schedule counts. The first expense is posted on the first scheduled date from today on.
splitTypeYesHow each total is divided, and so which value every split carries.
groupTokenYesThe group's token, from `listGroups` or `listSearchResults`.
amountCentsYesEach expense's total in minor units of `currency` (¥1,000 is 1000, $12.50 is 1250).
descriptionYesWhat each expense is for, such as Rent.
categoryTokenNoThe group category to file each expense under, by token from `showGroup`. Omit for none.
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.
paidByParticipantTokenYesThe member who pays each time, by token from `showGroup`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed26 schema fields changed
    • addedInput schema / $defs / RecurringSplit / properties / amountCents / description
      Added value: +"For an `amount` split, this member's share in minor units."
    • removedInput schema / $defs / RecurringSplit / properties / participantToken / $ref
      Removed value: -"#/$defs/Token"
    • addedInput schema / $defs / RecurringSplit / properties / participantToken / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/Token"
      +  }
      +]
    • addedInput schema / $defs / RecurringSplit / properties / participantToken / description
      Added value: +"A member who shares each expense, by token from `showGroup`."
    • addedInput schema / $defs / RecurringSplit / properties / percentage / description
      Added value: +"For a `percentage` split, this member's percentage."
    • addedInput schema / $defs / RecurringSplit / properties / shares / description
      Added value: +"For a `shares` split, this member's number of shares."
    • addedInput schema / properties / amountCents / description
      Added value: +"Each expense's total in minor units of `currency` (¥1,000 is 1000, $12.50 is 1250)."
    • removedInput schema / properties / cadence / $ref
      Removed value: -"#/$defs/RecurringCadence"
    • addedInput schema / properties / cadence / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/RecurringCadence"
      +  }
      +]
    • addedInput schema / properties / cadence / description
      Added value: +"The unit `interval` counts in."
    • removedInput schema / properties / categoryToken / $ref
      Removed value: -"#/$defs/Token"
    • addedInput schema / properties / categoryToken / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/Token"
      +  }
      +]
    • addedInput schema / properties / categoryToken / description
      Added value: +"The group category to file each expense under, by token from `showGroup`. Omit for none."
    • removedInput schema / properties / currency / $ref
      Removed value: -"#/$defs/Currency"
    • addedInput schema / properties / currency / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/Currency"
      +  }
      +]
    • addedInput schema / properties / currency / description
      Added value: +"The currency each expense is paid in."
    • addedInput schema / properties / description / description
      Added value: +"What each expense is for, such as Rent."
    • addedInput schema / properties / interval / description
      Added value: +"How many `cadence` units apart the expenses are, such as 2 with `weekly` for every other week."
    • removedInput schema / properties / paidByParticipantToken / $ref
      Removed value: -"#/$defs/Token"
    • addedInput schema / properties / paidByParticipantToken / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/Token"
      +  }
      +]
    • addedInput schema / properties / paidByParticipantToken / description
      Added value: +"The member who pays each time, by token from `showGroup`."
    • removedInput schema / properties / splitType / $ref
      Removed value: -"#/$defs/SplitType"
    • addedInput schema / properties / splitType / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/SplitType"
      +  }
      +]
    • addedInput schema / properties / splitType / description
      Added value: +"How each total is divided, and so which value every split carries."
    • addedInput schema / properties / splits / description
      Added value: +"Who shares each expense, each member once. For `equal` give only tokens;\nfor `amount`, amounts adding up to `amountCents`; for `percentage`,\npercentages adding up to 100; for `shares`, share counts.\n"
    • addedInput schema / properties / startsOn / description
      Added value: +"The first date, `YYYY-MM-DD`, from which the schedule counts. The first\nexpense is posted on the first scheduled date from today on.\n"
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-destructive, non-open-world write, so the description's burden is mainly to explain what gets created and when. It does add real scheduling semantics (posted on startsOn, then every interval; a past startsOn begins at the next date from today), but says nothing about the response or whether a payment is posted immediately, which matters for a mutation tool.

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?

Two tight sentences, front-loaded with the use case before the scheduling rule. The second sentence is slightly compressed to the point of awkwardness ('every interval weeks, months or years'), but nothing is wasted.

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 12-parameter, 9-required mutation with no output schema, the description covers the core trigger and scheduling rule but says nothing about the created object, idempotent retries (left entirely to the schema), or prerequisites such as membership/payer validity. The rich schema compensates, so it is adequate rather than complete.

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%, with detailed per-parameter descriptions including interval, startsOn, splits and idempotencyKey, so the baseline is 3. The description reinforces startsOn/interval meaning but adds nothing the schema does not already say, and its 'weeks, months or years' phrasing omits the `daily` cadence the enum allows.

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 — adding an expense on a schedule — and the phrase 'monthly rent' makes the recurring nature concrete, clearly separating it from a one-off add_expense. It stops short of naming a sibling tool, so the differentiation is done by wording rather than by explicit routing.

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 an explicit trigger condition: 'Use this when the user wants an expense added on a schedule', and explains the past-dated startsOn case that an agent would otherwise get wrong. It offers no exclusions or named alternatives (e.g. the one-off expense tool, or the listing/deletion siblings), which caps it below a 5.

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