How to Make MCP Tool Guards Fail Closed in Python
Look at three MCP tool signatures:
call_api(url: str, method: str, body: str | None)
query_database(sql: str)
read_text_file(path: str)
Every one of those arguments arrives from a model. Not from you
craigsolomon.hashnode.dev7 min read