Tool

Commerce MCP Tool Inspector

By Michael E.Updated Sources checked

Short answer

Agent Commerce Optimization's MCP tool inspector reads pasted Model Context Protocol tools/list output and reviews each tool: name rules, description quality, inputSchema validity, required fields, unbounded strings, behavior annotations, credential-like parameters, and likely write or destructive actions such as cart, order, or refund tools. It follows MCP specification 2026-07-28, runs in your browser, and never connects to your server.

Key takeaways

  • Paste the tools/list response; the inspector never opens a connection or asks for a token.
  • MCP requires each tool to have a name and an inputSchema whose root type is "object".
  • Without annotations, clients assume a tool is not read-only and may be destructive (readOnlyHint false, destructiveHint true).
  • Annotations are hints: the spec says clients must treat them as untrusted unless the server is trusted.
  • Write and money-moving tools need server-side authorization and user confirmation, whatever the annotations say.

What tools does my commerce MCP server expose?

The Model Context Protocol (MCP) is an open protocol that lets AI applications call tools exposed by a server. A client discovers them with the tools/list request. Run that request with your own client or the MCP Inspector, copy the JSON response, and paste it below. The inspector lists every tool with its parameters, the effective annotation values, and findings. For background, see the MCP server guide for ecommerce.

1. Paste tools/list output

Runs entirely in your browser. It never connects to your server. Paste tool definitions only, never access tokens or session headers.

What does the inspector check, and what can't it prove?

Checks, with the evidence type behind each
CheckBasisCannot prove
name present, unique, 1–128 characters of A–Z a–z 0–9 _ - .Documented (MCP 2026-07-28, SHOULD rules)That clients display or disambiguate the name well
description present and not trivially short; instruction-like text flaggedInferred good practice; injection patterns are a heuristicThat a model will choose the right tool
inputSchema present, root type is "object", valid types, required names definedDocumented (inputSchema MUST be an object schema)That the server validates inputs the same way
Unbounded strings and arrays, missing minimums on quantity/price, open additionalPropertiesInferred hardening practiceThat your backend rejects bad values
Annotations are booleans; effective values shown with spec defaultsDocumented (ToolAnnotations defaults)How a particular client uses the hints
Read-only hint on a tool whose name suggests a write; missing hints on write toolsHeuristic from tool name and descriptionWhat the tool actually does
Parameters that look like tokens, API keys, or card dataInferred; credentials belong in transport authorizationThat no secrets leak elsewhere

Are input schemas and permission boundaries clear?

A clear boundary means a model, a client, and a human reviewer can all tell from the definition what a tool reads, what it changes, and what input it accepts. In commerce, the important split is between catalog reads and actions that change carts, orders, or money.

Tool type (synthetic examples)Suggested annotationsSchema hardening
search_products, get_productreadOnlyHint: true; openWorldHint depends on whether it reaches outside your systemmaxLength on query strings; maximum on limit
add_to_cart, update_cartreadOnlyHint: false, destructiveHint: false, idempotentHint as implementedInteger quantity with minimum 1; SKU pattern or maxLength; additionalProperties false
cancel_order, refund_orderreadOnlyHint: false, destructiveHint: trueOrder ID pattern; require explicit user confirmation in the client
checkout, place_orderreadOnlyHint: false, destructiveHint: trueNever accept card data or tokens as model-visible arguments

Annotations do not enforce anything. The MCP specification says clients must consider them untrusted unless they come from trusted servers, and that servers must validate inputs and implement access controls. Use annotations to describe behavior honestly, and enforce permissions on the server. Our MCP server development work starts from that split, and the MCP commerce starter shows it in code.

Does the inspector connect to my server or store what I paste?

No. There is no live connection, no OAuth flow, and no token field. The JSON you paste is processed in your browser and is not uploaded. If the pasted text appears to contain a bearer token or API key, the tool warns you so you can remove and rotate it.

Frequently asked questions

How do I get tools/list output to paste?

Send a tools/list JSON-RPC request with any MCP client you already use, such as the MCP Inspector or a short script with an MCP SDK, and copy the response. The tool accepts the full JSON-RPC response, the result object, or just the tools array.

Why does it warn when a tool has no annotations?

Under MCP 2026-07-28 defaults, a tool without annotations is treated as not read-only and potentially destructive. For a read tool, that can cause unnecessary confirmation prompts. For a write tool, declaring the behavior explicitly helps clients and reviewers.

Can it tell for certain whether a tool writes data?

No. It infers from words in the name and description, such as get, list, add, cancel, or refund. That is a heuristic. Only the server code, or calling the tool in a test environment, shows what it really does.

Does it validate the full JSON Schema specification?

It checks the structure that matters most for tool inputs: the root object type, valid type names, required entries that exist in properties, and bounds. It is not a complete JSON Schema 2020-12 meta-schema validator.

Will you add authenticated live testing?

Only in explicitly authorized engagements, not on a public page. Live testing needs credentials and can change real data, so it belongs in a controlled environment with the owner's permission.

Does Shopify's old /api/mcp still expose catalog and cart tools?

Shopify's Storefront MCP migration documentation says those former catalog and cart tools on /api/mcp were removed. If you are inspecting an older integration, check the Shopify Storefront MCP migration guide.

Want a reviewed tool surface?

Tell us your platform and which actions agents should be able to take. We'll check what native MCP tools already cover first.

Sources

  1. MCP specification 2026-07-28: Tools
  2. MCP specification 2026-07-28: Schema reference
  3. MCP: Security best practices
  4. Shopify: Storefront MCP migration

Platform capabilities, eligibility, and specifications change. Sources were checked on 2026-11-29; confirm the current primary documentation before scoping an implementation. See our editorial policy and methodology.