Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Demo bicycle-parts store with invented brands and a synthetic catalog. Typical flow: search_products to find candidates, get_product for detail when choosing between them, check_availability for the quantity the buyer wants, then create_cart and hand the checkout_url to the buyer. The buyer pays on that page; no tool takes payment. Do not guess part numbers: copy them from search results.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
check_availabilityA

Check whether specific quantities can ship now. Send one to twenty {id, quantity} items. For each item the answer is available (all on the shelf), partial (fewer on the shelf than requested), backorder (ships after restock_days), unavailable (out of stock, no date) or unknown_part. A part sent on several lines is added up first, as create_cart does. Call this before create_cart and tell the buyer about any item that is not available. Changes nothing.

create_cartA

Create a cart and get a checkout link for the buyer. Use it only after the buyer has chosen the parts and quantities. Takes one to twenty {id, quantity} items and returns checkout_url, lines and the subtotal; amounts come in dollars and, authoritatively, in cents. The buyer opens checkout_url, reviews the cart and pays there: you never pay and cannot. Refuses unknown parts, out-of-stock parts and quantities above the shelf (a part sent on several lines counts once, with the lines added up); backordered parts are accepted and flagged.

get_productA

Get everything the store knows about one part: description, technical attributes (speed, wheel size, brake type, axle standard and so on), compatibility list, price, stock status, units on the shelf and restock days. Use it to compare two or three candidates from search_products or to confirm that a part fits the buyer's bike before recommending it.

search_productsA

Find bicycle parts. Use this first, whenever the buyer names a part, a part number, a need or a bike. Takes free text (typos, synonyms and part numbers work) plus optional filters: brand, category, fits (such as 11-speed, road, disc-brake, 29in), in_stock_only and max_price_usd. Returns up to limit ranked results with id, title, brand, price, stock status and what each part fits. Search results show stock status but not quantities; call check_availability before promising a quantity. Queries are limited to 200 characters and 20 words; limit is 1 to 25, default 5.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 4 tools

Disambiguation5/5

Each tool maps to a distinct step in the purchase funnel: discovery (search_products), inspection (get_product), stock verification (check_availability), and purchase handoff (create_cart). Descriptions explicitly state ordering (search first, then availability, then cart), eliminating overlap.

Naming Consistency5/5

All four names follow a consistent verb_noun snake_case pattern (search_products, get_product, check_availability, create_cart). Verb choices match the action semantics precisely with no stylistic drift.

Tool Count5/5

Four tools is lean but each is essential to the search→inspect→verify→checkout workflow. Nothing is redundant and no plausible operation is obviously missing from the core loop.

Completeness4/5

The happy-path lifecycle is fully covered, including a deliberate refusal to handle payment (checkout_url handoff). Minor gaps remain: no way to modify or retrieve an existing cart, and no order status/lookup after checkout.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues