Skip to main content
Glama

clearcut. — Buyer-Side Grocery Verification Layer (MCP)

verify_cart_clearance

Read-onlyIdempotent

PRE-CHECKOUT MULTI-ITEM BASKET GATE (1-25 items in one ~90ms call, zero truncation): Clear an entire grocery, baby, supplement, or pet shopping cart before checkout. Accepts product names, 8-14 digit UPCs, OR live DOM-scraped { name, upc, brand_name, ingredients } objects from browser shopping agents. Returns cart_clearance (PASS | WARN | BLOCK), full item verdicts, parent-company rollup, claim-matched HONEST swaps strictly for CAUGHT items, and a clickable visual_basket_receipt_url for the human buyer.

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": {
      "items": "<items>"
    },
    "name": "verify_cart_clearance"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesArray of 1-25 product names/UPCs (strings) or live-scraped `{ name, upc?, brand_name?, ingredients?, price?, size_oz?, quantity? }` objects
storeNoOptional preferred grocery chain for store-matched 1:1 alternatives

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / items / description
      Previous value: -"Array of 1-25 product names/UPCs (strings) or live-scraped `{ name, upc?, brand_name?, ingredients? }` objects"New value: +"Array of 1-25 product names/UPCs (strings) or live-scraped `{ name, upc?, brand_name?, ingredients?, price?, size_oz?, quantity? }` objects"
    • changedInput schema / properties / items / items / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "properties": {
      -      "brand_name": {
      -        "type": "string"
      -      },
      -      "ingredients": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "query": {
      -        "type": "string"
      -      },
      -      "upc": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "properties": {
      +      "brand_name": {
      +        "type": "string"
      +      },
      +      "ingredients": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "price": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "string"
      +          }
      +        ],
      +        "description": "Optional live retail unit price (e.g. 6.99 or '$6.99') so pre-checkout clearance computes exact dollars going to CAUGHT bluffs vs. verified HONEST items"
      +      },
      +      "quantity": {
      +        "description": "Optional cart quantity (defaults to 1)",
      +        "type": "number"
      +      },
      +      "query": {
      +        "type": "string"
      +      },
      +      "size_oz": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "string"
      +          }
      +        ],
      +        "description": "Optional package weight/volume in ounces (e.g. 30 or '30 oz') for unit price per oz math"
      +      },
      +      "upc": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), and the description still adds real behavioral context: the PASS/WARN/BLOCK verdict taxonomy, parent-company rollup, swaps limited strictly to CAUGHT items, a receipt URL, plus a latency and truncation guarantee. It does not discuss failure modes (e.g., unresolvable UPCs or items with no match), which keeps it just under the top mark.

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?

Information is front-loaded in a single dense paragraph with the scope, accepted formats, and return payload in that order — efficient for a batch tool. Minor deduction for shouty caps and marketing jargon ('CAUGHT', 'HONEST swaps', 'bluffs') that adds tone more than meaning.

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?

With no output schema, the description carries the return-value burden and does so — naming the top-level verdict, item-level verdicts, rollup, swaps, and receipt URL. Combined with full schema coverage on both parameters, an agent has everything needed to call this correctly.

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 the baseline is 3, but the description earns extra by clarifying that `items` accepts names, 8-14 digit UPCs, or live DOM-scraped objects — the digit-length constraint on UPCs is not in the schema. It also frames the batch size window, though it adds nothing new about the `store` enum beyond the schema's own description.

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 verb and resource — 'Clear an entire grocery, baby, supplement, or pet shopping cart before checkout' — and scopes it as a batch gate of 1-25 items. That makes it clearly distinguishable from single-product siblings like check_product_truth or verify-style per-item calls without needing to name them.

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 states the operating context explicitly (pre-checkout, whole cart, 1-25 items, ~90ms, zero truncation), which tells an agent when this batch tool is the right pick over per-item checks. It stops short of naming a sibling to use for single items or for post-checkout audits, so the exclusion side is only implied.

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.