Skip to main content
Glama

Resolve Product Names

resolve_products
Read-onlyIdempotent

Resolve a product name, category word or SKU (e.g. 'chairs', 'oak desk', 'CHR-01') to concrete product IDs in this store's catalog. Each match includes a similarity score and supports disambiguation of natural-language product references for product-level basket analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum matches to return. Defaults to 10.
queryYesProduct name, category word, or SKU to look up.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNoPresent only when nothing matched.
_metaNo
queryNoThe normalised query the matcher actually ran.
matchesNo
_messageNo
_truncatedNo
match_strategyNoWhich pass produced the matches. 'exact_sku' is certain; 'substring' and 'trigram' are fuzzy - confirm with the merchant before acting on a low match_score.
_tenant_contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the description only needs to add context. It adds that matches include a similarity score and that the tool supports disambiguation, which goes beyond the annotations without contradicting them.

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?

Two concise, front-loaded sentences: the first states the core resolve-to-IDs behavior with examples, and the second gives the key output trait and use case. There is no filler, repetition, or extraneous detail.

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?

For a simple two-parameter, read-only resolver with a full input schema and output schema, the description covers the necessary context: accepted input types, return concept (product IDs with similarity scores), and the intended analytical use case. Nothing essential is missing.

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?

With 100% schema description coverage, the baseline is 3. The description adds value by giving concrete example query values and clarifying that query can be a product name, category word, or SKU, which helps the agent formulate valid calls. It does not add anything about limit beyond the schema.

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?

The description opens with a specific action ('Resolve') and a concrete resource ('product name, category word or SKU... to concrete product IDs'), backed by concrete examples like 'chairs', 'oak desk', and 'CHR-01'. It clearly distinguishes this tool from the many sibling report/query tools by focusing on catalog ID resolution rather than reporting or analytics.

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 context: use this when natural-language product references, category words, or SKUs need to be resolved to catalog IDs for product-level basket analysis. It does not explicitly name sibling alternatives or state when not to use it, so it stops short of full when/when-not routing.

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