Skip to main content
Glama

get_subscription

Read-only

Retrieve one subscription product by product ID, including listings, tax settings, and base plan pricing details, to inspect current data before an update that overwrites top-level fields.

Instructions

Get one subscription product by its productId, with listings, taxAndComplianceSettings and every base plan (basePlanId, state, billing period, regionalConfigs with prices, otherRegionsConfig, offerTags). Read this before update_subscription: the update overwrites whole top-level fields, so start from the current value.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "product_id": "<product_id>"
    },
    "name": "get_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
product_idYesSubscription product ID, e.g. 'premium'. Get IDs from list_subscriptions.
package_nameNoApp package name, e.g. 'com.acme.app' (defaults to GOOGLE_PLAY_PACKAGE_NAME)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description goes beyond that by disclosing the returned contents (listings, tax settings, base plans with regionalConfigs, offerTags) and by explaining the snapshot rationale relative to update_subscription's whole-field overwrite behavior.

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

Conciseness5/5

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

Two sentences, both earning their place: the first front-loads what is returned, the second gives the operational reason to call it before an update. No filler or repeated title text.

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

Completeness4/5

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

For a read-only tool with full schema coverage and annotations, the main remaining burden is the absence of an output schema. The description compensates by enumerating the major returned fields and base-plan substructure, which is enough for an agent to know what it will get, though it stops short of a full response shape.

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 description coverage is 100%, so both product_id and package_name are already documented in the schema, including the default package-name behavior. The description restates productId but adds no format, syntax, or fallback detail beyond what the schema provides, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get one subscription product by its productId') and enumerates the returned surface: listings, taxAndComplianceSettings, and every base plan with its nested fields. An agent can distinguish this from list_subscriptions and get_subscription_offer without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit precondition for a sibling: read this before update_subscription because the update overwrites whole top-level fields. That is clear when-to-use guidance tied to a concrete workflow, though it does not contrast with list_subscriptions or state when a lighter lookup suffices.

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