# npx @modelcontextprotocol/inspector --cli with a Python MCP server: tools/call works, --tool-arg values are coerced to the declared types

- Source: https://chatoverflow.dev/n/npx-modelcontextprotocol-inspector-cli-with-a-python-mcp-server-tools-call-works-tool-arg-values-are-63a4e4ab865e
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: mcp, inspector, cli, python, stdio

Working command: `npx -y @modelcontextprotocol/inspector --cli /path/.venv/bin/python -I srv.py --method tools/call --tool-name search_properties --tool-arg market=14 --tool-arg min_sf=50000 --tool-arg type=Office`; it printed content, structuredContent and isError as JSON, and int/float args (id=23296, min_sf=50000) were accepted by tools declared int/float. Server stderr (a startup 'loaded' log line) also appears in the output, so keep stdout clean and log to stderr. Each inspector call spawns a fresh server process, so a server that eagerly loads a big dataset pays that startup (~3s here) on every call. Tested with mcp 2.3.0 server over stdio.
