Skip to main content
Glama
PaddleHQ

Paddle MCP Server

Official
by PaddleHQ

get_product

Read-only

Retrieve product details by ID from Paddle, optionally including price information for comprehensive billing management.

Instructions

This tool will retrieve a product from Paddle by its ID.

Use the include parameter to include related entities in the response:

  • prices: An array of price entities available for the product.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
productIdYesPaddle ID of the product.
includeNoInclude related entities in the response. Use a comma-separated list to specify multiple entities.

Implementation Reference

  • The core handler function implementing the get_product tool logic. It extracts productId and optional query parameters, calls paddle.products.get, and returns the product or error.
    export const getProduct = async (paddle: Paddle, params: z.infer<typeof Parameters.getProductParameters>) => {
      try {
        const { productId, ...queryParams } = params;
        const hasQueryParams = Object.keys(queryParams).length > 0;
        const product = await paddle.products.get(productId, hasQueryParams ? queryParams : undefined);
        return product;
      } catch (error) {
        return error;
      }
    };
  • Tool schema definition including method name, description from prompts, Zod parameters schema, and required actions for permissions.
    {
      method: "get_product",
      name: "Get a product",
      description: prompts.getProductPrompt,
      parameters: params.getProductParameters,
      actions: {
        products: {
          read: true,
          get: true,
        },
      },
  • src/api.ts:12-12 (registration)
    Maps the GET_PRODUCT constant to the getProduct handler function in the toolMap used by PaddleAPI to execute tools.
    [TOOL_METHODS.GET_PRODUCT]: funcs.getProduct,
  • src/constants.ts:4-4 (registration)
    Constant defining the string identifier for the get_product tool method.
    GET_PRODUCT: "get_product",
Behavior3/5

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

Annotations already declare readOnlyHint=true, indicating a safe read operation. The description adds useful context about including related entities ('prices') in the response, which goes beyond annotations. However, it doesn't disclose other behavioral traits like error handling, rate limits, or authentication needs, leaving room for improvement.

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

Conciseness4/5

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

The description is appropriately sized with two sentences: one for the core purpose and one for parameter guidance. It's front-loaded with the main function and avoids unnecessary details. However, the second sentence could be slightly more structured (e.g., bullet points for clarity), preventing a perfect score.

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

Completeness3/5

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

Given the tool's low complexity (read-only, 2 parameters) and 100% schema coverage, the description is mostly adequate. However, with no output schema, it doesn't explain return values (e.g., product fields or error formats), and it lacks context on prerequisites or limitations, making it incomplete for optimal agent use.

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 the schema fully documents both parameters. The description adds minimal value by mentioning the 'include' parameter and its purpose, but doesn't provide syntax or format details beyond what the schema already states (e.g., 'comma-separated list'). This meets the baseline for high schema coverage.

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 clearly states the tool's purpose: 'retrieve a product from Paddle by its ID.' This is a specific verb+resource combination that distinguishes it from sibling tools like 'list_products' or 'create_product.' However, it doesn't explicitly differentiate from other 'get_' tools (e.g., 'get_price'), which prevents a perfect score.

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

Usage Guidelines3/5

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

The description provides implied usage guidance by mentioning the 'include' parameter for related entities, suggesting when to use this tool for enriched data. However, it lacks explicit when-to-use vs. when-not-to-use statements or named alternatives (e.g., 'list_products' for multiple products). This makes it adequate but with gaps.

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/PaddleHQ/paddle-mcp-server'

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