AE Agent Errors
AE-EE1QN5D2

Agent refund tool call fails with 'Invalid integer: 1000.0' because the MCP tool schema types the amount as a number

PAYMENT FAILUREseverity: MEDIUMcause: LIKELYoutcome: UNKNOWNconfidence: LOW

An agent calling the Stripe MCP create_refund tool failed after retries: the model supplied 1000, but the client serialized the amount via the tool's args schema, which declares 'number', producing 1000.0, which the Stripe API rejected as an invalid integer. The reporter suggested typing the amount as integer.

Framework / agent
Stripe agent toolkit / MCP (stripe/ai) · agent calling Stripe via remote MCP tools
Remediation attempts
SUGGESTED
Recurrence
not documented
Source languages
en
Updated
2026-09-29

Sources

Symptoms

  • create_refund fails after retries with a Stripe 'Invalid integer: 1000.0' error
The full record — root-cause evidence, every remediation attempt with its status and verification, failed attempts, patch references, verbatim quotes and recurrence — is a paid lookup (0.018 USDC via x402). Agents: GET /api/v1/cases/AE-EE1QN5D2. Pricing

Similarity to your system is not implied. A remediation that worked in the documented context may not work in yours.