Skip to main content
Glama

federation_shop

Read-onlyIdempotent

Show a store's products — the store's public catalog as typed data, one row per product: name, description, price in USD and in Coms (1 Com = $0.01), category, stock (in_stock + available), a picture served from this gateway's own origin (null when the product has none), and the product's own pay link. Hosts that support MCP Apps draw the result as the ComOS shop panel: product cards with pictures, filters, and a Buy button that opens the pay link — the panel never places an order. Pass tenant_id (e.g. "earth"). A tenant that is not a storefront answers { error: "not_a_storefront" }. Public, read-only, free. CO 607-002. Returns: { tenant_id, store_name, storefront, read_at, products: [{ product_id, name, description, price, currency, coms, category, in_stock, available, image_url, pay_url }] } — also as structuredContent. A tenant that is not a storefront: isError with { error: "not_a_storefront", tenant_id }. Example: call federation_shop with arguments {"tenant_id":"<tenant_id>"}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tenant_idYesThe store to show, e.g. "earth".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive/openWorld=false, yet the description adds substantial extra context: the non-storefront error shape, that the MCP Apps panel is display-only and never places an order, that image_url is null when absent, and the Com/$ conversion rate. This goes well beyond the safety profile.

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

Conciseness3/5

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

Purpose and scope are front-loaded and readable, but there is real duplication: the return shape is given once in prose and again in a Returns block, and the not_a_storefront error is stated twice. The unexplained "CO 607-002" reference also spends space without earning it.

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?

There is no output schema, so the description correctly carries the full return contract (field list and structuredContent), the error case, and the interactive-panel behavior. Nothing an agent needs to invoke or interpret this tool is missing.

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?

Only one parameter with 100% schema coverage, and the schema already documents tenant_id with the same "earth" example the description repeats. The description adds no format or constraint detail beyond the schema, so the baseline 3 applies.

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 — showing a store's public product catalog — and enumerates the exact per-product fields returned. An agent can tell this is a storefront read, distinct from the agent/platform catalog siblings, though no sibling is named explicitly, which keeps it off a 5.

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?

It tells the agent to pass tenant_id (e.g. "earth") and notes the tool is public/read-only/free, which implies usage. But it never states when to choose this over federation_offer, federation_pricesheet, or the federation_catalog_* siblings, so guidance remains implied rather than explicit.

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.