Skip to main content
Glama

Acme Store

get_product

Read-onlyIdempotent

Read one product with its options and variants. Use it before add_to_cart, which needs the id of one variant. Returns the product with every variant's id, options, price and availability, plus related products.

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": {
      "handle": "<handle>"
    },
    "name": "get_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
handleYesthe product handle, from a search or a collection

Output Schema

NameRequiredDescriptionDefault
productYesUpstream Product (the reshaped one the UI consumes).
relatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered; the description adds what the call actually yields — every variant's id, options, price and availability, plus related products. That return-content context is genuinely useful for an agent deciding whether one call is enough before mutating the cart.

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 core action, then the usage rule, then the payoff. No redundant restatement of the name or title and nothing that could be cut.

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

Completeness5/5

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

For a one-parameter read with annotations and an output schema, this covers everything an agent needs: what it returns, why to call it, and the downstream dependency on add_to_cart. Return-value details can be deferred to the output schema, which exists.

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?

The single parameter is fully documented in the schema (100% coverage) with an example value and the note that the handle comes from a search or collection. The description adds no format or derivation detail beyond that, so the schema carries the parameter semantics and 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 — 'Read one product with its options and variants' — and the scope ('one') distinguishes it from the list/search siblings without needing their names. An agent knows immediately this is a single-item fetch that hydrates variant data.

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 sequencing rule: 'Use it before add_to_cart, which needs the id of one variant,' which names the alternative and the reason to pick this tool first. It lacks any when-not guidance (e.g., when search_products or list_collection_products suffices), so it falls short of full 5-level coverage.

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