Skip to main content
Glama

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

NameRequiredDescriptionDefault
kwargsNoKeyword arguments to check against the signature
symbolYesDotted path, e.g. requests.Session.get
packageNoPyPI name if different from the import name
versionYesExact version (e.g. 2.31.0) or 'latest'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full disclosure burden and does so: it enumerates the three return statuses, states that not_found is bounded by a limited static syntax check and is not a runtime guarantee, and warns that dynamic, conditional or external code yields cannot_verify. It even clarifies that a verified instance attribute is set on self rather than necessarily being a class attribute, which is exactly the kind of nuance an agent would otherwise get wrong.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the core purpose, followed by the return contract, the static-analysis caveat, the attribute nuance and finally the usage cue. It is dense but every sentence carries information; only the attribute caveat sits slightly awkwardly between the return contract and the usage line.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description fully specifies the return contract with all three statuses and their meanings. For a read-only verification tool with 100% schema coverage and no annotations, nothing an agent needs in order to call it or interpret its answer is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all four parameters are already documented, including the dotted symbol path, the package alias and the exact-version/'latest' convention. The description reinforces the exact-version semantics and implicitly frames kwargs as signature checks, but adds little parameter-level meaning the schema does not already carry. A baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: check whether a Python class, function, method or attribute exists in an exact released PyPI version, by reading that release's published source. The mechanism (static source reading) and the scope (a pinned exact version) are both named, so an agent can tell precisely what question this tool answers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use guidance: call it before writing code that calls a library API you are not certain about, for the project's pinned version. It also tells the agent how to react to an inconclusive result ('do not assume either way'). There are no sibling tools, so the absence of named alternatives is not a gap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools