A local MCP server exposes a tool called library_hours. A model may choose to call it later, but first check the server directly with MCP Inspector. Use the server's test command and a small fixture that records the central branch as open on Wednesday and closed on Sunday.

Connect to the test server in Inspector and list its tools. Open library_hours and read the input schema. For this example, it should require a branch ID and a date. Send the branch's known ID and a fixture date such as 2026-09-09. Check that the result names the expected branch and includes its opening and closing times.

Call it again with 2026-09-13 and verify that the closed response has a shape the client can distinguish from a missing branch. For an invalid input, try an unknown but well-formed branch ID and check for the error described by your tool contract. Save these expected cases alongside the server tests. When assistant integration starts, the same cases can distinguish a problem in tool selection from a problem inside the server.

Exercise the advertised input contract

For a local JavaScript server that communicates over standard input and output, the Inspector docs show a launch command you can adapt to the test entry point.

npx @modelcontextprotocol/inspector node path/to/server/index.js

After both fixture lookups pass, send a second request with the date omitted. Compare its error with the response for an unknown branch. The missing field should be handled as an invalid request. The unknown branch should follow the tool’s documented lookup behavior. If either failure returns ordinary opening hours, check whether the server ignores the corresponding input or silently supplies a default.

Sources