Skip to main content
Glama

Check colour stock

check_colour_stock
Read-only

Verify whether a specific colour is available before configure_product. Returns in_stock boolean, expected_restock_date if out of stock, and up to 5 alternative in-stock colours ordered by similarity. Call this when a customer requests a named colour or when you want to prevent a configure_product failure due to an out-of-stock selection. Duo Roller: colour is one blockout and one sheer written "Blockout + Sheer" (get_product returns duo_fabrics).

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": {
      "product_id": "<product_id>",
      "colour_name": "<colour_name>"
    },
    "name": "check_colour_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
product_idYesProduct id, for example roller-blockout or venetian-25mm-aluwood
colour_nameYesColour the customer asked for: an exact name, or a family such as grey or white. For a Duo Roller write "Blockout + Sheer"

Output Schema

NameRequiredDescriptionDefault
foundNo
colourNo
messageNo
in_stockYes
product_idNo
expected_restockNo
matching_coloursNo
available_coloursNo
exact_colour_matchNo
requires_exact_colour_selectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / colour_name / description
      Added value: +"Colour the customer asked for: an exact name, or a family such as grey or white. For a Duo Roller write \"Blockout + Sheer\""
    • addedInput schema / properties / product_id / description
      Added value: +"Product id, for example roller-blockout or venetian-25mm-aluwood"
  2. 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=true, openWorldHint=false, destructiveHint=false, so the safety profile is covered. The description adds genuinely non-structured behavior: what happens on failure (restock date plus ranked alternates), and the Duo Roller naming convention that differs from a plain colour name. It stops short of saying whether the check reserves stock or whether repeated calls are cheap.

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?

Purpose and return shape are front-loaded in the first two sentences, then two conditional caveats. Every sentence carries information; the Duo Roller sentence is dense but earns its place as a format trap. Slightly long but not padded.

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?

A read-only two-parameter lookup with full schema coverage and an output schema, so little burden remains. The description still covers trigger conditions, fallback behavior, and the one naming edge case, leaving only minor gaps such as similarity ranking criteria and restock-date format.

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 coverage is 100%, so baseline is 3; the description goes beyond by accepting colour families ('grey or white') as well as exact names, and by spelling out the Duo Roller 'Blockout + Sheer' compound format with a pointer to get_product's duo_fabrics. That is real disambiguation the schema's brief parameter notes do not fully carry on their own.

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 ('Verify whether a specific colour is available') and frames it relative to the sibling it precedes (configure_product). The return summary (in_stock boolean, restock date, up to 5 similar alternatives) lets an agent distinguish it from lookup/search tools without opening the schema.

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 two explicit triggering conditions: a customer asking for a named colour, and pre-empting a configure_product failure from an out-of-stock choice. It names the downstream alternative it protects against but doesn't state any when-not-to-use case (e.g., when colour is already known to be in stock).

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