Skip to main content
Glama

dollartree_search

Read-only

Search Dollar Tree products or browse a category with its live filter groups and options. q is optional; browse with navigation_id from dollartree_categories or pass an exact navigation_state returned by a filter option. navigation_id and navigation_state are mutually exclusive. offset is zero-based, page_size is 48, 72, or 96, and sort accepts the storefront's exact sort values.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dollartree_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOptional. Product search query. Omit when browsing by a category or navigation state.
sortNoOptional. Exact upstream sort value: empty, product.x_unitPriceNumeric|0, product.x_unitPriceNumeric|1, DollarProductType.new|1, DollarProductType.averageRating|1, product.displayName|0, product.displayName|1, product.casePrice|1, or DollarProductType.numberOfReviews|1.
offsetNoOptional. Zero-based upstream result offset. Defaults to 0.
page_sizeNoOptional. Results per page: 48, 72, or 96. Defaults to 48.
navigation_idNoOptional. Dollar Tree search navigation id. Use a dimension_id from dollartree_categories or an option returned in filter_groups.
navigation_stateNoOptional. Exact navigation_state returned for a filter option. Mutually exclusive with navigation_id; it preserves the upstream multi-filter navigation selection.

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

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=true, idempotentHint=false), so the bar is lower. The description still adds real behavioral context beyond them: the mutual exclusivity constraint between navigation_id and navigation_state, the fixed page-size choices, and the fact that sort values must match the storefront exactly rather than be interpreted.

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?

Three dense sentences, front-loaded with purpose and mode selection before the parameter mechanics. Some content duplicates the schema verbatim, which is mild waste, but there is no filler or hedging.

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, return values need no explanation, and the description covers mode selection, the key exclusivity constraint, and pagination rules. What remains thin is how the browse mode relates to dollartree_products and how filter groups feed back into navigation_state, which is implied but not spelled out.

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%, so the schema already documents all six parameters in detail. The description largely restates the same facts (zero-based offset, 48/72/96 page sizes, exact sort values) rather than adding new meaning. The one genuinely additive element is the explicit mutual-exclusion rule between navigation_id and navigation_state, which the schema only states on one side.

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?

The description opens with a specific verb-plus-resource statement ('Search Dollar Tree products or browse a category with its live filter groups') and names the two operating modes, search and browse. It does not explicitly distinguish itself from siblings like dollartree_products or dollartree_product, so an agent must infer the boundary from the name alone.

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?

It gives clear conditional guidance: 'q is optional', browse with a navigation_id from dollartree_categories, or pass an exact navigation_state from a filter option, and it states these two are mutually exclusive. It stops short of saying when to prefer this tool over dollartree_products, so the guidance is contextual but not exhaustive.

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.