Skip to main content
Glama
Beankeeper

Beankeeper

Official

collection_reconcile_refund

Record a Stripe refund and reopen the original invoice by the exact refunded amount, keeping the company's books reconciled.

Instructions

Post a recorded Stripe refund and reopen the original invoice by the exact refunded amount.

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": {
      "company": "<company>",
      "terms": "<terms>"
    },
    "name": "collection_reconcile_refund"
  }
}

Input Schema

NameRequiredDescriptionDefault
termsYes
companyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.1/5.0
Behavior3/5

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

The readOnlyHint=false annotation already flags a mutation, and the description adds useful effect detail: it posts to the books and reopens the original invoice at the exact refunded amount, so the agent knows the invoice state changes. It omits failure conditions (e.g. closed period, already-reopened invoice) and does not restate the idempotency-over-webhook-retries guarantee that lives only in the schema.

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 front-loaded sentence with no filler; the verb and the financial consequence both land immediately.

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 write tool with a nested parameter object and no output schema, the description covers the action and its accounting effect but leaves preconditions and the shape of the resulting reconciliation state unexplained. Adequate to call it, not adequate to call it safely in edge cases.

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

Parameters2/5

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

Schema description coverage is reported at 0% for the top-level parameters, so the description must compensate, but it says nothing about company scoping or what booked_on must satisfy. The nested schema text about an open accounting date on or after both payment and refund carries all the meaning, and the description adds none of it.

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 gives a specific verb+resource ("Post a recorded Stripe refund") plus the downstream effect ("reopen the original invoice by the exact refunded amount"), which distinguishes it from payout/statement reconcile siblings by resource. It does not explicitly name an alternative, but the refund focus is unambiguous.

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?

No statement of when to use this versus collection_refunds, collection_reconcile_payout, or reconcile_statement, and no prerequisites such as the refund already existing in Stripe or being recorded against an open accounting period. Usage must be inferred from the phrase "a recorded Stripe refund."

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

Deploy Server

Other Tools