AIScan how-to cover: 'Can an agent finish the job?' with Shopify and StoreSEO logos and three steps: list the tools, call one real task, check the answer.
AIScan how-to cover: 'Can an agent finish the job?' with Shopify and StoreSEO logos and three steps: list the tools, call one real task, check the answer.
AI Readiness

Test Whether an Agent Can Complete a Task: 338 MCP Servers

Test whether an AI agent can finish a task on your MCP server: list tools, call one, send a control call. Plus what 338 registry servers returned in Nov 2026.

8 Oct 2026 17 min read
#MCP#agent testing#tools/call#AI readiness

This guide covers P2 · Capabilities — for Shopify.

Table of contents

Updated on 23 November 2026: a live test of 338 remote MCP servers from the official MCP Registry, the 2026-07-28 specification, and a script that now falls back to the initialize handshake.

To test whether an AI agent can complete a task on your site, call your MCP endpoint the way an agent does: list the tools, call one with a real question, check the answer against your own pages, and send a control call for a tool that does not exist. A status code proves nothing, because errors travel inside a 200. On 23 November 2026 we ran that test against 338 servers from the official registry: 208 listed their tools, 105 asked for credentials first, and 25 did not answer at all.

Finding an MCP endpoint is the easy half. The half that matters is whether an agent can finish a job with it: ask a question, get an answer it can parse, and act on it. This guide gives you a five-step test that takes about ten minutes and ends in a plain pass or fail, using curl and a short script, plus the AIScan scan that covers the discovery half.

On 8 October 2026 I ran this test against two live servers, www.allbirds.com and aiscan.site. Both passed, but they failed a bad call in two different ways, and a script written for one failed the other until it learned to read both. On 23 November both still behaved the same way. That is the kind of detail only a task test finds.

Quick summary

If you want to...Do thisWhat passing looks likeTime
Know whether agents can discover your serverScan with AIScan (check:P2, MCP Server Card)P2 passes, card parses1 min
Know whether the endpoint lists toolsPOST a tools/list bodyJSON-RPC result.tools is a non-empty array2 min
Know whether a tool does its jobPOST a tools/call for one real taskresult.content holds the answer you expect3 min
Know whether failures are honestCall a tool that does not existA JSON-RPC error, or a result with isError: true, not a fake success1 min
Keep it workingRe-run the script on a schedule or in CIExit code 05 min once
See how other servers doRead the 338-server results208 of 338 listed tools; 105 needed credentials3 min

Short answer: discovery, listing, calling and failing correctly are four separate tests. AIScan's P2 check grades the first. The other three need a request that completes a task, and a pass means the response body parses and holds the key you asked for. A status code alone proves nothing.

Why a green status code is not a passing test

An MCP server speaks JSON-RPC 2.0 over HTTP. According to the Model Context Protocol specification (version 2026-07-28, verified on 23 November 2026; the 2025-06-18 tools page says the same about tools), two requests matter here. It defines tools/list, which returns the tools a server offers, and tools/call, which runs one of them with arguments.

Think of a restaurant. tools/list is the menu. tools/call is ordering a dish. A menu on the door tells you nothing about whether the kitchen can cook. Most checks, including most scanners, read the menu. A task test orders the dish and checks what arrives.

Two details of the protocol make status codes misleading:

  • Errors travel in the body, in two shapes. On 8 October 2026 I called a tool that does not exist. www.allbirds.com/api/mcp replied HTTP 200 with a JSON-RPC error object ("Tool not found: no_such_tool", code -32602). aiscan.site/api/mcp also replied HTTP 200, but with a normal result carrying "isError": true and the text MCP error -32602: Tool no_such_tool not found. Both are valid. A script that checks only the status code calls both a pass.
  • The body may not be plain JSON. The same request to aiscan.site/api/mcp returned content-type: text/event-stream, with the JSON-RPC message inside a data: line. A parser that expects raw JSON fails on a healthy server.

Here is what the same three requests returned on 8 October 2026, fetched from each endpoint with a desktop browser user agent:

Requestwww.allbirds.com/api/mcpaiscan.site/api/mcp
tools/listJSON, 1 tool (search_shop_policies_and_faqs)text/event-stream, several tools including scan_website and get_grade
Real tools/callHTTP 200, answer text in result.contentHTTP 200, score JSON in result.content
Unknown toolJSON-RPC error, code -32602result with isError: true

According to the specification's tools page (2026-07-28, verified on 23 November 2026), an unknown tool is a protocol error and belongs in the JSON-RPC error object, with code -32602 in its example, while isError: true is for tool execution errors such as a failed API call or a bad date. So Allbirds follows the letter of the spec and aiscan.site does not: our own server reports the unknown tool as an execution error. It is a common choice. In the 23 November test, 97 of 208 working servers did the same. An agent still gets a clear message either way, so a test should accept both shapes and fail only a reply that claims success.

So a task test counts success only when the body parses, the response has a result and no error, and the key you need is present inside result. The Streamable HTTP transport lets a server reply with a JSON object or an event stream, which is why the script below handles both.

Path 1: scan first, then test by hand with curl

AIScan is the quickest way to check the discovery half. Run npx aiscan-cli example.com or paste the URL at aiscan.site. It is free and needs no account. The relevant row is P2 (MCP Server Card) in the capabilities dimension. According to the P2 guidance fetched from the AIScan MCP on 8 October 2026, the check covers the MCP Server Card, a file at /.well-known/mcp/server-card.json, so it tells you whether an agent can find your server and read its declared tools. If you have not published a card yet, publish an MCP server card first.

What AIScan does not do is call your tools. It cannot tell you whether search_catalog returns products or an empty array. That is what the by-hand test is for. If you would rather check everything yourself, this path is complete without the scan.

  1. Set the endpoint. Use the URL from your server card's transport entry, or your own path. Shopify stores expose theirs at /api/mcp on the storefront domain.

    EP=https://example.com/api/mcp
    H='Content-Type: application/json'
    A='Accept: application/json, text/event-stream'
    
  2. List the tools. Send a tools/list request and read the names, not just the status.

    curl -sL -X POST "$EP" -H "$H" -H "$A" \
      -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' \
      -w '\n%{http_code} %{content_type}\n'
    

    Pass: result.tools is an array with at least one entry, and each entry has a name and an inputSchema. Fail: HTML, an empty array, or an error object.

  3. Pick one real task and call the tool. Choose the job a visitor's agent would do first. For a store, that is a policy question. On www.allbirds.com on 8 October 2026 the list held one tool, search_shop_policies_and_faqs, which needs a query.

    curl -sL -X POST "$EP" -H "$H" -H "$A" \
      -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_shop_policies_and_faqs","arguments":{"query":"What is your return policy?","policy_types":["refund"]}}}'
    

    Pass: the reply has result.content, and the text answers the question. Fail: an error, an empty content array, or isError: true in the result, which the specification uses for tool-level failures.

  4. Read the answer against your own site. This is the step people skip. The Allbirds structured answer said returns are accepted "within 31 days days of delivery", while the written refund policy it returned in the same reply says 30 days. A call can succeed and still hand an agent a contradiction. Compare the answer with the page a human would read.

  5. Run a control call. Ask for a tool that does not exist.

    curl -sL -X POST "$EP" -H "$H" -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"no_such_tool","arguments":{}}}'
    

    Pass: a JSON-RPC error with a code and message, or a result with isError: true and a message that names the problem. Fail: a normal-looking result with no isError, which means the server accepts anything and your pass in step 3 proves nothing. Also request the same path with GET. Verified on 8 October 2026: on the Allbirds host, GET /api/mcp returned a 404 HTML page, which is a fair answer for a POST-only endpoint.

If a server insists on a session, the 2025-06-18 lifecycle starts with an initialize request followed by a notifications/initialized message, and the server may hand back an Mcp-Session-Id header to send on every later request. Allbirds and aiscan.site answer tools/list without it. In the 23 November test, 193 of 208 working servers did too, and 15 refused until the handshake ran (Bad Request: Missing session ID, Server not initialized). Try the short form first and add the handshake if you get a session error. The script below does that for you.

Path 2: a script that returns pass or fail

The by-hand test is good once. A script is better when you change the server often. This one uses only the Python standard library, accepts both JSON and event-stream replies, runs the initialize handshake when the short form is refused, accepts both error shapes, and exits non-zero on the first failure. Version 2 replaced the 8 October script on 23 November 2026. The old one failed on the 15 servers that need a session, and it read the first data: line of a stream even when that line was not the reply.

  1. Save this as mcp_task_test.py.

    import json, sys, urllib.request, urllib.error
    
    EP, TOOL, ARGS, NEED = sys.argv[1], sys.argv[2], json.loads(sys.argv[3]), sys.argv[4]
    HDRS = {"Content-Type": "application/json",
            "Accept": "application/json, text/event-stream", "User-Agent": "mcp-task-test/2.0"}
    
    def fail(msg):
        print("FAIL", msg); sys.exit(1)
    
    def rpc(i, method, params, extra=None):
        msg = {"jsonrpc": "2.0", "method": method, "params": params}
        if i is not None:
            msg["id"] = i
        req = urllib.request.Request(EP, json.dumps(msg).encode(), {**HDRS, **(extra or {})})
        try:
            resp = urllib.request.urlopen(req, timeout=60)
        except urllib.error.HTTPError as e:
            resp = e
        except Exception as e:
            fail("request failed: %s" % e)
        raw = resp.read().decode("utf-8", "replace")
        sid = resp.headers.get("Mcp-Session-Id")
        if i is None:
            return {}, sid
        if "text/event-stream" in (resp.headers.get("Content-Type") or ""):
            for line in raw.splitlines():
                if line.startswith("data:"):
                    try:
                        m = json.loads(line[5:])
                    except ValueError:
                        continue
                    if m.get("id") == i:
                        return m, sid
            fail("no reply with id %s in the event stream" % i)
        try:
            return json.loads(raw), sid
        except ValueError:
            fail("HTTP %s, not JSON: %s" % (resp.status, raw[:80]))
    
    extra = {}
    out, _ = rpc(1, "tools/list", {})
    if "result" not in out:
        init, sid = rpc(2, "initialize", {"protocolVersion": "2025-06-18", "capabilities": {},
                        "clientInfo": {"name": "mcp-task-test", "version": "2.0"}})
        if "result" not in init: fail("initialize refused: %s" % init.get("error"))
        extra = {"MCP-Protocol-Version": init["result"].get("protocolVersion", "2025-06-18")}
        if sid: extra["Mcp-Session-Id"] = sid
        rpc(None, "notifications/initialized", {}, extra)
        out, _ = rpc(3, "tools/list", {}, extra)
    tools = out.get("result", {}).get("tools") or fail("no tools: %s" % out.get("error"))
    if TOOL not in [t["name"] for t in tools]: fail("tool missing: " + TOOL)
    out, _ = rpc(4, "tools/call", {"name": TOOL, "arguments": ARGS}, extra)
    if "error" in out or out.get("result", {}).get("isError"): fail(out)
    text = json.dumps(out["result"].get("content", []))
    if NEED.lower() not in text.lower(): fail("answer lacks: " + NEED)
    bad, _ = rpc(5, "tools/call", {"name": "no_such_tool", "arguments": {}}, extra)
    if "error" in bad:
        print("control: JSON-RPC error", bad["error"].get("code"))
    elif bad.get("result", {}).get("isError"):
        print("control: isError result (accepted; the spec asks for a JSON-RPC error)")
    else:
        fail("control call succeeded")
    print("PASS", TOOL)
    
  2. Run it with a tool name, its arguments and a word the answer must contain.

    python3 mcp_task_test.py https://example.com/api/mcp search_shop_policies_and_faqs \
      '{"query":"What is your return policy?","policy_types":["refund"]}' "return"
    
  3. Read the exit code. 0 prints PASS and one control: line that says which error shape the server used. Anything else prints one FAIL line naming the step: no tools, a refused handshake, tool missing, an error object, an answer without the required word, or a control call that did not report an error. On 23 November 2026 the script printed PASS for search_shop_policies_and_faqs on Allbirds (control: JSON-RPC error -32602) and for list_checks on aiscan.site (control: isError result).

  4. Run it where regressions land. Put the command in a scheduled job or a deploy step. The CI gate guide shows how to fail a build on a regression, and the same pattern works here with this script as the step.

  5. Choose the required word with care. Use a word that only a correct answer contains, such as a number of days or a product name. A word like "the" passes on an error message.

Which result means what

What you seeMeaningFirst thing to try
result.tools array, call returns content, control returns errorThe server works for agentsSchedule the script
HTTP 200 but HTML bodyA catch-all page is answering, not an MCP serverCheck the route and the POST handler
data: lines and content-type: text/event-streamHealthy streaming replyParse the data: line, as the script does
HTTP 404 on POSTNo endpoint at that pathRead the real path from your server card
error with code -32602The server rejected your argumentsCompare them with the tool's inputSchema
Control call returns a plain resultThe server accepts anythingFix validation before trusting step 3
HTTP 401 with WWW-AuthenticateThe server needs a token before it lists anythingFollow its OAuth metadata, or test with your own token
HTTP 400 Missing session IDA session-based serverRun the initialize handshake first
HTTP 400 naming Unsupported protocol versionThe server does not speak the version you asked forSend a version it lists, such as 2025-06-18

What 338 registry servers returned on 23 November 2026

A test of two servers tells you how two servers behave. To see what an agent meets in general, we ran the same checks against a random sample of public servers on 23 November 2026.

Method. We read the official MCP Registry API (/v0/servers?version=latest) on 23 November 2026: 70,816 server entries, 69,731 active, 42,386 with a Streamable HTTP remote that needs no URL template and no required header, on 42,083 unique URLs and 32,380 hosts. We shuffled the URLs with a fixed seed, took 400, and kept one URL per host: 338 hosts. Each got four requests with Python's urllib, a 15-second timeout, no retries and the user agent mcp-task-check/1.0: tools/list with no handshake, an initialize handshake asking for 2025-06-18, tools/list and a control tools/call for a tool named no_such_tool_7431 inside that session, then the same list and control call in the 2026-07-28 stateless form. We never called a real tool on someone else's server, because a real call can cost the owner money or change their data. The heaviest platform in the working set was Cloudflare Workers, with 12 hosts.

What the server didHostsShare of 338
Listed its tools with no handshake19357.1%
Listed its tools only after initialize154.4%
Asked for credentials first (HTTP 401 or 403)10531.1%
Answered with an error status and no tools (404 7, 503 3, other 5)154.4%
No answer (timeout, DNS or connection failure)103.0%

So 208 servers (61.5%) are open for a task test without credentials. Of the 105 that wanted credentials, 86 sent a WWW-Authenticate header, the place where RFC 9728 puts the resource_metadata URL that tells a client where to start, and 19 sent no such header. A 401 with no pointer is a dead end for an agent that has never seen the server. See how MCP servers handle OAuth client registration for the next step on those.

The 208 working servers listed between 1 and 423 tools, with a median of 6: one tool on 10 servers, two to nine on 136, ten to 49 on 57, and 50 or more on 5. Of the 193 that answered the short form, 143 replied with application/json and 50 with text/event-stream, which is why a test that parses only plain JSON fails on about a quarter of healthy servers. Asked for 2025-06-18 in initialize, 195 agreed to it, 7 offered 2025-03-26, 5 offered 2024-11-05 and 1 offered 2025-11-25. 26 issued an Mcp-Session-Id.

The control call is the check that separates an honest server from one that says yes to anything:

Reply to a tool that does not exist (208 servers)Servers
JSON-RPC error with a code (-32602 93, -32601 4, -32001 3, -32000 2)102
result with isError: true97
JSON-RPC error with no code5
result with no isError, error text inside the content2
Neither a result nor an error2

199 of 208 servers (95.7%) reported the bad call in a form a script can read. Nine did not. Of the two plain result replies, one put "error":"Unknown tool." inside the text, where only a reader of the text would catch it. The other answered a tool that does not exist with instructions for paying 0.01 USDC through x402, as if the call had worked. A third server, in the no-code group, asked for a payment of 0.005 for the missing tool. A status-code check passes all three. That is the reason for step 5: a server that cannot say "no" clearly makes every "yes" harder to trust.

What changed in the 2026-07-28 specification

The current MCP version is 2026-07-28, according to the versioning page verified on 23 November 2026. It removes the handshake. According to the 2026-07-28 lifecycle page, "There is no negotiation handshake. Every request carries its protocol version." On HTTP that means three things a test request now carries:

  • _meta inside params with io.modelcontextprotocol/protocolVersion and io.modelcontextprotocol/clientCapabilities, which are required, and io.modelcontextprotocol/clientInfo, which is recommended;
  • an MCP-Protocol-Version: 2026-07-28 header that matches the body;
  • Mcp-Method on every request and Mcp-Name on a tools/call, which the Streamable HTTP page calls required for compliance.

A server that does not speak the requested version must answer with an UnsupportedProtocolVersionError (code -32022) that lists the versions it does support. Revisions up to 2025-11-25 are now called legacy, and the spec's compatibility table says a dual-era client that gets a 4xx without a modern error body falls back to initialize.

Here is how the 208 working servers took a request in the new form on 23 November 2026:

2026-07-28 request, tools/listServers
Answered with the tool list anyway (ignored the new fields)134
HTTP 400 naming the version as unsupported (1 with code -32022)59
HTTP 400 for another reason (Missing session ID, Server not initialized, other)15

Only one server in 208 answered with the new error code. Every other server either ignored the new fields or refused with an older error, which a dual-era client treats as "use the handshake". For your own test this means: keep testing with the 2025-06-18 form the script uses, because that is what almost every server speaks today. Add a 2026-07-28 request once your server's SDK supports it, and check that an unsupported version gets -32022 and not a bare 400.

Who can skip this

If your site has no MCP endpoint and sells nothing through one, the test does not apply and P2 is optional. According to the P2 guidance, a content site or marketing page can skip the server card. Do not build an endpoint to pass a test. If you run a Shopify store, the /api/mcp endpoint comes from the platform, so your work is the content behind it. StoreSEO generates llms.txt from live products, collections and pages and has an agents.md editor, which are the files an agent reads before it decides to call a tool. For the wider picture, see what the commerce protocols do and whether you need WebMCP yet.

Keep it passing

Re-run the test after every deploy that touches routing, a CDN rule or an authentication layer. Servers change under you: earlier posts on this blog counted ten tools on some Shopify storefronts, and on 8 October 2026 www.allbirds.com listed one. On 23 November 2026 it still listed one. A test that names a tool will tell you the day it disappears.

Next step

Scan your site at aiscan.site and read the P2 row, then run the five steps above against your endpoint. Browse the rest of the AIScan guides for the checks that sit around it, and read the capabilities checks for what each row grades.

Related: before an agent can complete a task through your API it has to find the description. See how to publish an OpenAPI file agents can find, how to publish an MCP server card for every platform, and how many sites publish a server card at all.

Frequently asked questions

What is the difference between listing tools and completing a task?

Listing tools reads the menu: tools/list returns the names and schemas a server offers. Completing a task orders from it: tools/call runs one tool and the answer has to parse and hold what you asked for. A server can pass the first and fail the second.

Why does my MCP endpoint return HTTP 200 but the test fails?

JSON-RPC carries errors in the body, not the status line. A 200 can hold an error object, a result with isError: true, or an HTML catch-all page. Parse the body and require result with the content you expect. In our 23 November 2026 test, 50 of 193 servers replied as an event stream, so read the data: line too.

My curl returns a page of HTML instead of JSON. What is wrong?

A catch-all route or your framework's 404 page is answering instead of an MCP handler. Check that the path matches the transport URL in your server card, that the route accepts POST, and that you sent Content-Type: application/json.

I get HTTP 406 Not Acceptable. How do I fix it?

Streamable HTTP servers can refuse a request whose Accept header does not name both reply shapes. Send Accept: application/json, text/event-stream. If the 406 persists, check that the URL is the MCP endpoint and not the site root.

The reply starts with `event: message` and my JSON parser fails. Is the server broken?

No. That is a text/event-stream reply, which the Streamable HTTP transport allows. The JSON-RPC message sits on the line that starts with data:. Strip the prefix before parsing, as the script in this guide does.

Does AIScan call my MCP tools?

No. AIScan's P2 check covers the MCP Server Card, which is how an agent discovers your server. It does not send tools/call requests, so a task test is the only way to know a tool returns the right answer.

Do I need the initialize handshake before tools/list?

Some servers require it. Under the 2025-06-18 specification the session starts with initialize and a notifications/initialized message. In our 23 November 2026 test, 193 of 208 working servers answered tools/list without it and 15 refused until it ran. The 2026-07-28 specification drops the handshake and puts the version in every request instead.

Does my site need an MCP server at all?

Not if it is a content or marketing site. The P2 guidance says to skip the server card if you do not expose an MCP server. Build one only if there is a task you want agents to complete, then test it with the steps above.

My server returns 401 before it lists any tools. Can an agent still use it?

Only if it can get a token. Send a WWW-Authenticate header that points to your OAuth protected resource metadata, so a client knows where to start. In our 23 November 2026 test, 105 of 338 registry servers wanted credentials first and 19 of them gave no pointer at all.

I get HTTP 400 Unsupported protocol version. What does that mean?

Your client asked for a protocol version the server does not speak, often 2026-07-28 sent to a server built on an older SDK. Send one of the versions the error lists, such as 2025-06-18. A server on the 2026-07-28 specification should answer with error code -32022 and its supported versions.

Should an unknown tool return isError or a JSON-RPC error?

The specification lists an unknown tool as a protocol error, so a JSON-RPC error with code -32602 is the expected reply. Many servers return a result with isError: true instead, 97 of 208 in our 23 November 2026 test, including aiscan.site. Both tell an agent the call failed. A plain result that looks like success does not.

M Asif Rahman

About the author

Entrepreneur, curious about AI

I have been building companies for a long time, and lately most of my curiosity goes to AI. AIScan is a small personal project I built on a flight from Dubai to Narita. I use it to understand how ready the web is for AI agents, and I share what the scans teach me.

Related guides

Browse every guide by check and platform