Skip to main content
Glama

ForthClear Liquidation Marketplace

Semantic inventory search

search_inventory_semantic
Read-only

Find listings by describing what you want in everyday language, such as returned kitchen appliances in bulk. No sign-in required. Semantic matches include similarity from 0 to 1 and match_type semantic. When the embedding index is empty or no provider is configured, results use keyword search, similarity is null, and match_type is keyword_fallback. category, when set, is one catalogue category such as electronics. max_price is the maximum unit price in cents.

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": {
      "query": "<query>"
    },
    "name": "search_inventory_semantic"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoAlias for query.
limitNoNumber of ranked results to return
queryYesNatural-language description of what the buyer wants. `q` is accepted as an alias.
categoryNoLimit to one catalogue category. One of: electronics, apparel, home_goods, beauty, sports, kitchenware, office_supplies, toys, food_beverage, tools, other.
conditionNoCondition of the goods: salvage (sold as-is), customer returns, shelf pulls, overstock, or new or refurbished.
max_priceNoMaximum price per unit in cents

Output Schema

NameRequiredDescriptionDefault
countYes
modelYes
queryYes
totalYes
messageYes
resultsYes
productsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / q
      Added value: +{
      +  "description": "Alias for query.",
      +  "type": "string"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"Natural-language description of what the buyer wants"New value: +"Natural-language description of what the buyer wants. `q` is accepted as an alias."
  2. Changed3 schema fields changed
    • changedInput schema / properties / category / description
      Previous value: -"Restrict candidates to a single category"New value: +"Limit to one catalogue category. One of: electronics, apparel, home_goods, beauty, sports, kitchenware, office_supplies, toys, food_beverage, tools, other."
    • addedInput schema / properties / category / enum
      Added value: +[
      +  "electronics",
      +  "apparel",
      +  "home_goods",
      +  "beauty",
      +  "sports",
      +  "kitchenware",
      +  "office_supplies",
      +  "toys",
      +  "food_beverage",
      +  "tools",
      +  "other"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "count": {
      +      "type": "integer"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "model": {
      +      "type": "string"
      +    },
      +    "products": {
      +      "items": {
      +        "properties": {
      +          "category": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "condition": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "description": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "discount_percent": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "image_url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "match_type": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "price": {
      +            "type": "integer"
      +          },
      +          "quantity": {
      +            "type": "integer"
      +          },
      +          "similarity": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name",
      +          "price",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "query": {
      +      "type": "string"
      +    },
      +    "results": {
      +      "items": {
      +        "properties": {
      +          "category": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "condition": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "description": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "discount_percent": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "image_url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "match_type": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "original_retail": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "price": {
      +            "type": "integer"
      +          },
      +          "product_id": {
      +            "type": "integer"
      +          },
      +          "quantity": {
      +            "type": "integer"
      +          },
      +          "similarity": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "sku": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "product_id",
      +          "name",
      +          "price",
      +          "url",
      +          "similarity",
      +          "match_type"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "total": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "query",
      +    "results",
      +    "count",
      +    "model",
      +    "message",
      +    "products",
      +    "total"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / condition / description
      Previous value: -"Restrict candidates to one condition grade"New value: +"Condition of the goods: salvage (sold as-is), customer returns, shelf pulls, overstock, or new or refurbished."
  4. Added

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already establish that this is a safe read-only operation, and the description adds important behavior: no sign-in required, semantic similarity scores, match_type values, and fallback to keyword search when embeddings are unavailable. It still does not describe ranking or scope beyond the fallback, but the added context is substantial.

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?

The description is front-loaded with the tool's purpose and then covers authentication, result shape, fallback behavior, and key parameters. It is reasonably efficient, though some parameter detail repeats the schema.

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?

For a semantic search tool with annotations and an output schema, the description covers the essential behavior: natural-language input, no sign-in, result fields, and fallback mode. It does not fully connect this tool to its keyword-search sibling, but it is otherwise complete enough to call correctly.

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 description coverage is 100%, so the parameter documentation baseline is 3. The description restates the meaning of category and max_price, but adds little beyond the schema, and it does not mention q, limit, or condition semantics.

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 uses a specific verb and resource, 'Find listings', and identifies the semantic natural-language mode with a concrete example. It does not explicitly name the sibling keyword search tool, so it does not fully differentiate itself from alternatives by name.

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

Usage Guidelines3/5

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

It implies that this tool should be used when the buyer can describe what they want in everyday language, and it explains the keyword fallback. However, it does not explicitly say when to choose this over search_inventory or other search tools.

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