Skip to main content
Glama

dollartree_stock_status

Read-only

Get current Dollar Tree stock status and in-stock, orderable, backorderable, and preorderable quantities for one product SKU. Pass product_id from dollartree_search and the matching sku_id from that product's childSKUs in dollartree_product; use dollartree_price for price values. An unknown product returns not found; a response with mismatched SKU identity is rejected.

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>",
      "sku_id": "<sku_id>"
    },
    "name": "dollartree_stock_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
sku_idYesRequired. SKU repository id from the selected product's childSKUs.
product_idYesRequired. Dollar Tree product repository id returned by dollartree_search.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuine behavioral context beyond them: an unknown product returns not found, and a response with mismatched SKU identity is rejected. It does not explain the non-idempotent nature (live/volatile quantities), which is the one remaining behavioral gap.

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 tight sentences: purpose and return fields first, ID sourcing second, failure modes last. No filler, and the critical scoping ('one product SKU') is front-loaded.

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?

With an output schema present, the description needn't enumerate return values, and it covers the risky parts: ID provenance and two error conditions. Slightly incomplete in that it doesn't convey that quantities are live and change between calls, which matters given idempotentHint=false.

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?

Schema coverage is 100% and both parameter descriptions already state their provenance ('returned by dollartree_search', 'from the selected product's childSKUs'). The description repeats this sourcing nearly verbatim, adding the coupling requirement that the two IDs must match, but no new syntax or format detail. Baseline 3 is appropriate.

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 ('Get current Dollar Tree stock status') plus the exact quantity fields returned (in-stock, orderable, backorderable, preorderable) and scopes it to 'one product SKU'. It also distinguishes itself from dollartree_price by redirecting price lookups there, so an agent can separate it from siblings without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit prerequisite chain: product_id from dollartree_search, then sku_id from that product's childSKUs in dollartree_product. It also names the alternative for a related need ('use dollartree_price for price values'), which is a real when-not-to-use signal rather than a bare mention.

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.