Skip to main content
Glama

apple_create_subscription_group

Create a subscription group in App Store Connect by providing the app ID and a reference name to organize subscription offerings.

Instructions

Create a subscription group

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appIdYesApp ID
referenceNameYesReference name

Implementation Reference

  • The handler function for the tool. Sends a POST request to /subscriptionGroups with the subscription group name and app relationship.
    const createSubscriptionGroup: ToolDef = {
      name: 'apple_create_subscription_group',
      description: 'Create a subscription group',
      schema: z.object({
        appId: z.string().describe('App ID'),
        referenceName: z.string().describe('Reference name'),
      }),
      handler: async (client, args) => {
        const { appId, ...attributes } = args;
        return client.request('/subscriptionGroups', {
          method: 'POST',
          body: {
            data: {
              type: 'subscriptionGroups',
              attributes,
              relationships: {
                app: { data: { type: 'apps', id: appId } },
              },
            },
          },
        });
      },
    };
  • Zod schema defining the two required inputs: appId and referenceName, both strings.
    schema: z.object({
      appId: z.string().describe('App ID'),
      referenceName: z.string().describe('Reference name'),
    }),
  • The tool is exported as part of the appleTools array (line 1251), which is registered in src/index.ts via the server.tool() loop (lines 59-74).
    export const appleTools: ToolDef[] = [
      // App Management
      listApps, getApp, getAppInfo, updateAppInfoCategory,
      // Bundle IDs
      listBundleIds, createBundleId,
      // Versions & Localizations
      listVersions, createVersion,
      listVersionLocalizations, createVersionLocalization, updateVersionLocalization,
      // App Info Localizations (name, subtitle)
      listAppInfoLocalizations, updateAppInfoLocalization,
      // Screenshots
      listScreenshotSets, createScreenshotSet, uploadScreenshot, deleteScreenshot,
      // Builds
      listBuilds, assignBuild,
      // Age Rating & Review Info
      getAgeRating, updateAgeRating, updateReviewDetail,
      // Submission
      submitForReview, cancelSubmission,
      // Pricing & Availability
      getAppPricing, setAppPrice, listTerritoryAvailability,
      // Customer Reviews
      listCustomerReviews, respondToReview,
      // Bundle ID Capabilities
      listBundleIdCapabilities, enableCapability, disableCapability,
      // Certificates
      listCertificates, createCertificate, revokeCertificate,
      // Provisioning Profiles
      listProfiles, createProfile, deleteProfile,
      // Devices
      listDevices, registerDevice, updateDevice,
      // TestFlight - Beta Groups
      listBetaGroups, createBetaGroup, deleteBetaGroup,
      addBetaTestersToGroup, removeBetaTestersFromGroup,
      // TestFlight - Beta Testers
      listBetaTesters, inviteBetaTester, deleteBetaTester,
      // In-App Purchases
      listIAP, createIAP, getIAP, deleteIAP,
      // Subscription Groups
      listSubscriptionGroups, createSubscriptionGroup, deleteSubscriptionGroup,
    ];
  • The ToolDef interface that defines the shape of each tool (name, description, schema, handler).
    interface ToolDef {
      name: string;
      description: string;
      schema: z.ZodObject<any>;
      handler: (client: AppleClient, args: any) => Promise<any>;
    }
Behavior2/5

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

With no annotations, the description must disclose behavioral traits. It states 'create' implying mutation, but does not mention idempotency, irreversible effects, required permissions, or what happens if the group already exists. Lacks transparency for a creation operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence, but it is too brief and does not earn its place. It sacrifices completeness for brevity, lacking valuable details that could be added without significant verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simplicity of the tool (2 parameters, no output schema), the description is minimal. It does not explain what a subscription group is, how referenceName is used, or any constraints. Incomplete for a new user unfamiliar with App Store Connect.

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

Parameters3/5

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

Schema coverage is 100% with descriptions for both parameters ('App ID', 'Reference name'). The tool description adds no additional meaning beyond the schema. Baseline of 3 is appropriate since the schema already provides the meaning.

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 'Create a subscription group' uses a specific verb and resource, clearly indicating creation of a subscription group. It distinguishes from sibling tools like delete and list. However, it could be more explicit about what a subscription group is in the context of Apple App Store Connect.

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 guidance on when to use this tool versus alternatives. It does not mention prerequisites such as needing an existing app (appId) or that groups are used for auto-renewable subscriptions. No exclusions or context provided.

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

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