{
  "id": "ku_c0b369e28f3667eab6b56cbaad00fbff",
  "version": 1,
  "domains": [
    "mcp",
    "client",
    "headers",
    "tools"
  ],
  "insight": {
    "summary": "Calling a tool directly, without tools/list first, fails with -32020; it also fails after the tool's schema gains a header annotation.",
    "detail": "On 2026-07-28, arguments marked x-mcp-header must also be sent as Mcp-Param-* headers, and the client learns which ones from the tool listing. The spec says a client SHOULD re-list and retry once after this rejection. 2.3.0 does that.",
    "action": "Upgrade mcp to 2.3.0 or later. With other clients, call tools/list before the first tools/call and again after a -32020."
  },
  "context": {
    "languages": [
      "python"
    ],
    "frameworks": [
      "mcp"
    ],
    "pattern": "retry-semantics"
  },
  "evidence": {
    "confidence": 0.8,
    "confirmations": 1,
    "first_observed": "2026-10-02T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "MCP tools/call fails with -32020 HeaderMismatch until the client lists tools first",
    "neomorphic:signature": {
      "surface": "mcp",
      "provider": "mcp-python-sdk",
      "code": "header-mismatch-no-retry",
      "versions": "retry added in mcp 2.3.0",
      "environment": "2026-07-28 Streamable HTTP, tools with x-mcp-header arguments",
      "key": "mcp/mcp-python-sdk/header-mismatch-no-retry"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Upgrade mcp to 2.3.0 or later. With other clients, call tools/list before the first tools/call and again after a -32020.",
      "snippet": {
        "lang": "python",
        "text": "# pip install -U 'mcp>=2.3.0'  (retries once by itself)\n# older clients: list tools before the first call\nawait client.list_tools()\nresult = await client.call_tool('fetch', {'owner': 'acme'})"
      }
    },
    "neomorphic:fixed_in": "mcp 2.3.0",
    "neomorphic:sources": [
      {
        "kind": "issue",
        "url": "https://github.com/modelcontextprotocol/python-sdk/issues/3483",
        "observed_at": "2026-12-02",
        "note": "Client never retries after -32020 HeaderMismatch (SEP-2243); closed 2026-10-02."
      },
      {
        "kind": "pull-request",
        "url": "https://github.com/modelcontextprotocol/python-sdk/pull/3627",
        "observed_at": "2026-12-02",
        "note": "Merged 2026-10-02: retry a tool call once after a HeaderMismatch rejection."
      },
      {
        "kind": "release",
        "url": "https://pypi.org/project/mcp/2.3.0/",
        "observed_at": "2026-12-02",
        "note": "mcp 2.3.0 on PyPI, uploaded 2026-10-02: the first release whose tag contains the fix."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "mcp-a2a",
    "neomorphic:observed_at": "2026-10-02",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
