Skip to main content
Glama

apple_create_iap

Create in-app purchases for iOS apps by defining product IDs, names, and types like consumable or subscription items.

Instructions

Create an in-app purchase

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appIdYesApp ID
nameYesIAP name
productIdYesProduct ID (e.g. com.example.app.coins100)
inAppPurchaseTypeYesIAP type

Implementation Reference

  • The handler function that executes the creation of an in-app purchase.
    handler: async (client, args) => {
      const { appId, ...attributes } = args;
      return client.request(`${V2_BASE}/inAppPurchases`, {
        method: 'POST',
        body: {
          data: {
            type: 'inAppPurchases',
            attributes,
            relationships: {
              app: { data: { type: 'apps', id: appId } },
            },
          },
        },
      });
    },
  • The schema definition for the apple_create_iap tool.
    schema: z.object({
      appId: z.string().describe('App ID'),
      name: z.string().describe('IAP name'),
      productId: z.string().describe('Product ID (e.g. com.example.app.coins100)'),
      inAppPurchaseType: z.enum(['CONSUMABLE', 'NON_CONSUMABLE', 'NON_RENEWING_SUBSCRIPTION']).describe('IAP type'),
    }),
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikusnuz/app-publish-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server