A WebMCP Tool Is Registered but Failing: Debug the Contract in Chrome
The agent finds the right tool. Chrome shows a registration. The application still returns INVALID_ARGUMENTS . That failure is easy to misdiagnose as a model problem. In the companion fixture, it has a simpler cause: the tool advertises an argument called id , while the callback expects eventId . The agent can follow the advertised schema perfectly and still fail. This article uses that…
This brief focuses on debugging a WebMCP tool contract issue in Chrome. The problem lies in a mismatch between the advertised argument name "id" and the expected argument name "eventId" in the callback. The source material provides a step-by-step guide on how to reproduce the issue using a broken fixture, which exposes the incorrect schema, and a corrected fixture, which uses the proper schema.
The author demonstrates how to use Chrome's DevTools panel to inspect the registered tools and their schemas, as well as how to compare the actual arguments with the callback's validator. The goal is to identify the broken boundary before attempting to fix the issue, and to ensure that the debugging process is explicitly configured using the provided Chrome DevTools agent guide.
Brief written by urgent.news; may contain errors — check the original.
Source: dev.to