Commerce MCP Tool Inspector
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/listresponse; the inspector never opens a connection or asks for a token. - MCP requires each tool to have a
nameand aninputSchemawhose 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?
| Check | Basis | Cannot 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 flagged | Inferred good practice; injection patterns are a heuristic | That a model will choose the right tool |
inputSchema present, root type is "object", valid types, required names defined | Documented (inputSchema MUST be an object schema) | That the server validates inputs the same way |
Unbounded strings and arrays, missing minimums on quantity/price, open additionalProperties | Inferred hardening practice | That your backend rejects bad values |
| Annotations are booleans; effective values shown with spec defaults | Documented (ToolAnnotations defaults) | How a particular client uses the hints |
| Read-only hint on a tool whose name suggests a write; missing hints on write tools | Heuristic from tool name and description | What the tool actually does |
| Parameters that look like tokens, API keys, or card data | Inferred; credentials belong in transport authorization | That 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 annotations | Schema hardening |
|---|---|---|
search_products, get_product | readOnlyHint: true; openWorldHint depends on whether it reaches outside your system | maxLength on query strings; maximum on limit |
add_to_cart, update_cart | readOnlyHint: false, destructiveHint: false, idempotentHint as implemented | Integer quantity with minimum 1; SKU pattern or maxLength; additionalProperties false |
cancel_order, refund_order | readOnlyHint: false, destructiveHint: true | Order ID pattern; require explicit user confirmation in the client |
checkout, place_order | readOnlyHint: false, destructiveHint: true | Never 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.
Related
- MCP server developmentCommerce MCP servers with explicit permission boundaries.
- MCP server ecommerce guideWhat MCP does for a store.
- MCP authentication for ecommerceAuth patterns for commerce tools.
- Build an ecommerce MCP server in TypeScriptA tutorial with schemas and annotations.
- MCP commerce starterStarter code to compare against.
Sources
- MCP specification 2026-07-28: Tools
- MCP specification 2026-07-28: Schema reference
- MCP: Security best practices
- 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.