stripe_prices
Retrieve Stripe products and their associated prices, including subscription terms and metadata. Results are cached for 5 minutes.
Instructions
Get available Stripe products and prices.
Returns list of products with their associated prices
Each product includes:
Product ID and display name
Description and metadata
Available pricing offers
Subscription terms if applicable
Results are cached for 5 minutes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/stripe.ts:81-88 (handler)The handler for 'stripe_prices' - calls this.api.getStripePrices() and returns JSON content.
case 'stripe_prices': const prices = await this.api.getStripePrices(); return { content: [{ type: "text", text: JSON.stringify(prices, null, 2) }] }; - src/tools/stripe.ts:24-46 (schema)The tool registration and input schema for 'stripe_prices' - defines name, description, and input parameters.
{ name: "stripe_prices", description: `Get available Stripe products and prices. - Returns list of products with their associated prices - Each product includes: - Product ID and display name - Description and metadata - Available pricing offers - Subscription terms if applicable - Results are cached for 5 minutes${appNameRequired ? '\n- Requires appName parameter when using master key' : ''}`, inputSchema: { type: "object", properties: { ...(appNameRequired ? { appName: { type: "string", description: "Name of the app to fetch data from. Required when using master key." } } : {}) }, required: appNameRequired ? ["appName"] : undefined } } - src/server.ts:70-82 (registration)Tool registration via ListToolsRequestSchema - collects tools from all tool classes including StripeTools.
this.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: [ ...this.tools.customers.getTools(), ...this.tools.purchases.getTools(), ...this.tools.transactions.getTools(), ...this.tools.statistics.getTools(), ...this.tools.stripe.getTools(), ...this.tools.events.getTools(), ...this.tools.app.getTools() ] }; }); - src/server.ts:102-104 (registration)Routing stripe_* tool calls to the StripeTools handler, including stripe_prices.
if (name.startsWith('stripe_')) { return await this.tools.stripe.handleTool(name, args); } - src/iaptic-api.ts:233-236 (helper)The underlying API helper that makes the HTTP GET request to /stripe/prices endpoint.
async getStripePrices() { const response = await this.client.get('/stripe/prices'); return response.data; }