Skip to main content
Glama

Get package purchase

get_package_purchase
Read-only

Reads a package that your user bought, by the token at the end of its /pkg link. It gives what it books, how many sessions are left, and link, with handle and slug, to book with. Call book with that link and package_token.

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": {
      "package_token": "<package_token>"
    },
    "name": "get_package_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
package_tokenYesThe token at the end of the package link, /pkg/{token}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful behavior beyond that: it discloses what the read returns (bookings, remaining sessions, and a booking link with handle and slug) — important since there is no output schema.

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?

Three short sentences, front-loaded with the purpose and identifier, followed by the return contents and the next action. No filler or redundancy.

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 single-parameter read tool with no output schema, the description covers the identifier source, the returned data, and the follow-up call. It does not mention behavior on an invalid or expired token, which is a minor gap.

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%, and the schema already defines package_token as the token at the end of /pkg/{token}. The description restates the same meaning without adding format, source, or error-handling detail, so the baseline of 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?

The description states a specific verb and resource: it reads a purchased package identified by the token at the end of its /pkg link. This distinguishes it clearly from siblings such as get_booking and get_link, which address different resources.

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?

It gives clear forward guidance — take the returned link and package_token and call book — which tells the agent the next step in the workflow. It does not explicitly state when not to use this tool (e.g., for unbought or quoted packages), so it stops short of full when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources