Skip to main content
Glama

get_commerce_collection

Read-onlyIdempotent

Get one collection, optionally with the full product objects it links.

Args: project_id: The project ID. collection_id: The collection ID. Required unless slug is given. slug: The collection slug. Used when collection_id is empty. include_products: Also return the linked products, in link order.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugNo
project_idYes
collection_idNo
include_productsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this a safe, idempotent, closed-world read, so the safety profile needs no restating. The description adds genuine behavioral constraints beyond that: collection_id is required unless slug is supplied, and products come back in link order. It says nothing about auth or pagination, keeping this at a solid but not rich 3.

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 purpose sentence is front-loaded, followed by a compact Args list. Every line earns its place given the zero schema coverage, though the plain Args enumeration is functional rather than elegant.

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?

An output schema exists, so return values need no prose. With all four inputs documented and the read-only profile covered by annotations, the definition is complete enough for a single-resource fetch; the only gap is the absence of any sibling routing.

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

Parameters4/5

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

Schema description coverage is 0%, so the description carries the full burden, and it does so well: all four parameters are explained, including the mutually exclusive collection_id/slug behavior and the link-order meaning of include_products. Only the format/type nuances of project_id and collection_id are left implicit.

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?

States a specific verb and resource ('Get one collection'), and the singular 'one' plus the optional product expansion cleanly separates it from list_commerce_collections. It does not name or reference any sibling explicitly, so it is clear but not differentiated by comparison.

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?

There is no explicit when-to-use or when-not-to-use guidance and no routing to alternatives such as list_commerce_collections or get_commerce_product. The id/slug rule is an invocation constraint rather than usage guidance, so the agent must infer when this tool applies.

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