verify_python_api
Check whether a Python symbol exists in an exact PyPI release by inspecting its published source, so you can avoid calling APIs missing from your pinned version.
Instructions
Check whether a Python class, function, method or attribute exists in an EXACT released version of a PyPI package, by reading that version's published source. Returns status verified (with file, line, signature, deprecation signals), not_found (the name is absent from the release's SOURCE under a limited static syntax boundary; this is not a runtime guarantee), or cannot_verify (dynamic, conditional or external code; do not assume either way). A verified 'instance attribute' is set on self in a method, not necessarily a class attribute. Use before writing code that calls a library API you are not certain about for the project's pinned version.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"version": "<version>"
},
"name": "verify_python_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kwargs | No | Keyword arguments to check against the signature | |
| symbol | Yes | Dotted path, e.g. requests.Session.get | |
| package | No | PyPI name if different from the import name | |
| version | Yes | Exact version (e.g. 2.31.0) or 'latest' |