Skip to main content
Glama

lookup_api

Check whether a fully qualified Python API name exists, returning found, missing, or not covered plus close matches to fix invalid references.

Instructions

Check whether a fully qualified Python name exists, e.g. 'pandas.DataFrame.to_markdown' or 'os.path.join'. Returns found/missing/not covered and close matches when missing.

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": {
      "name": "<name>"
    },
    "name": "lookup_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesdotted name, without aliases

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does useful work by disclosing the three outcome states (found/missing/not covered) and the close-match fallback, which hints at a bounded knowledge base, but it says nothing about read-only safety, latency, or what 'not covered' means in scope (which libraries/versions).

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

Conciseness5/5

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

Two sentences, front-loaded with the operation and immediately followed by example inputs and the return contract. No filler; every clause carries information an agent needs.

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

Completeness4/5

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

For a simple one-parameter lookup with no output schema, the description covers input format and return states, which is most of what an agent needs. The residual gap is the meaning and scope of 'not covered' and whether close matches should be auto-substituted.

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 coverage is 100% and already documents the single parameter as a dotted name without aliases. The description reinforces this with concrete examples such as 'pandas.DataFrame.to_markdown' and 'os.path.join', which is helpful but adds little beyond what the schema states.

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

Purpose4/5

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

States a specific verb and resource: check existence of a fully qualified Python name, with two concrete dotted-name examples. It does not explicitly differentiate itself from the sibling check_code, so it falls short of a 5.

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

Usage Guidelines3/5

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

Usage is implied by the examples and by the existence-check framing, but there is no explicit when-to-use or when-not-to-use guidance, and no mention of when check_code would be preferred.

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