Skip to main content
Glama

Samuelz® Accounting

Zahlungserinnerung vorbereiten

prepare_payment_reminder
Idempotent

Prepare a human approval request for one current open-payment case. First use list_open_payments and copy its caseId. Use preview_payment_reminders for the standing-send preview, not this single-case preparation; run_payment_reminders is the separate existing standing-send action.

Supply one UUID requestKey for the instruction. The server validates that UUID, but deduplicates the prepared operation by tenant, case and UTC day; changing requestKey does not authorize another reminder. Existing preparation reuses the operation only while the current amount and canonical payment link still match. Other current case/customer-history guards can also block preparation; a new UTC day never automatically permits another reminder. Re-read the case when preparation is blocked or uncertain.

Returns operationId, caseId, kind, amountCents, currency, paymentLink, expiresAt and nextAction=show_reply_approval, with sendsMessage=false and canSelfApprove=false. Display that existing operation through show_reply_approval(operationId); only the unchanged human approval workflow can send.

Requires current communications:read and operator:prepare. Paid, cancelled, declined and test cases remain blocked. An expired offer link requires the separate existing renewal workflow; a missing exact balance link returns payment_link_missing. No new price, offer renewal, checkout, approval or send.

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": {
      "caseId": "<caseId>",
      "requestKey": "<requestKey>"
    },
    "name": "prepare_payment_reminder"
  }
}

Input Schema

NameRequiredDescriptionDefault
caseIdYesExact caseId from list_open_payments for this workspace. Not a communicationId or reply operationId.
requestKeyYesCaller-supplied UUID for this preparation instruction. It is validated; actual deduplication uses tenant, case and UTC day. A different UUID does not create a second daily reminder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / caseId / description
      Added value: +"Exact caseId from list_open_payments for this workspace. Not a communicationId or reply operationId."
    • addedInput schema / properties / requestKey / description
      Added value: +"Caller-supplied UUID for this preparation instruction. It is validated; actual deduplication uses tenant, case and UTC day. A different UUID does not create a second daily reminder."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), it discloses the real behavioral model: deduplication by tenant, case and UTC day; that a changed requestKey grants no extra reminder; that reuse only holds while amount and canonical payment link match; that a new UTC day does not auto-permit a reminder; required scopes communications:read and operator:prepare; and the payment_link_missing failure. It also makes explicit that nothing is sent, approved, priced or checked out.

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?

Front-loaded with purpose then alternatives, then the dedup rules, then return shape and permissions. It is dense but nearly every sentence carries decision-relevant information; the requestKey dedup explanation slightly repeats what the schema already states, 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, and the description compensates by listing the returned fields (operationId, caseId, kind, amountCents, currency, paymentLink, expiresAt, nextAction) plus sendsMessage=false and canSelfApprove=false. Combined with permissions, blocking conditions, error code and the mandatory follow-up call to show_reply_approval, an agent has everything needed to invoke and act on the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents caseId provenance and requestKey dedup semantics, so baseline is 3. The description adds genuine meaning beyond the schema by explaining that an existing preparation is reused only while the current amount and canonical payment link still match, which changes how an agent should interpret a repeated call.

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?

States a specific verb and resource with scope: 'Prepare a human approval request for one current open-payment case.' It explicitly distinguishes itself from preview_payment_reminders (standing-send preview) and run_payment_reminders (existing standing-send action), so an agent can route between them without opening schemas.

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 an explicit prerequisite sequence ('First use list_open_payments and copy its caseId'), names the alternatives and when to prefer them, and enumerates when the tool will not work: paid, cancelled, declined and test cases, expired offer links requiring the renewal workflow, and general case/customer-history guards. It also advises re-reading the case when blocked or uncertain.

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