Skip to main content
Glama

google_update_iap

Modify existing in-app product details like title, description, price, and status for Android applications on Google Play.

Instructions

Update an existing in-app product

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packageNameYesAndroid package name
skuYesProduct SKU
defaultLanguageNoDefault language
titleNoProduct title (for default language)
descriptionNoProduct description (for default language)
statusNo
defaultPriceCurrencyCodeNoCurrency code
defaultPriceMicrosNoPrice in micros

Implementation Reference

  • Definition and handler implementation for the google_update_iap tool.
    const updateInAppProduct: ToolDef = {
      name: 'google_update_iap',
      description: 'Update an existing in-app product',
      schema: z.object({
        packageName: z.string().describe('Android package name'),
        sku: z.string().describe('Product SKU'),
        defaultLanguage: z.string().optional().describe('Default language'),
        title: z.string().optional().describe('Product title (for default language)'),
        description: z.string().optional().describe('Product description (for default language)'),
        status: z.enum(['active', 'inactive']).optional(),
        defaultPriceCurrencyCode: z.string().optional().describe('Currency code'),
        defaultPriceMicros: z.string().optional().describe('Price in micros'),
      }),
      handler: async (client, args) => {
        const product: any = {};
        if (args.status) product.status = args.status;
        if (args.defaultLanguage) product.defaultLanguage = args.defaultLanguage;
        if (args.title || args.description) {
          const lang = args.defaultLanguage || 'en-US';
          product.listings = { [lang]: {} as any };
          if (args.title) product.listings[lang].title = args.title;
          if (args.description) product.listings[lang].description = args.description;
        }
        if (args.defaultPriceCurrencyCode && args.defaultPriceMicros) {
          product.defaultPrice = {
            priceMicros: args.defaultPriceMicros,
            currency: args.defaultPriceCurrencyCode,
          };
        }
        return client.updateInAppProduct(args.packageName, args.sku, product);
      },
    };
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