Skip to main content
Glama

check_library_usage

Verify external library calls against current signatures and documentation, flagging deprecated symbols to prevent usage of outdated APIs.

Instructions

Dependency-contract check for the code's EXTERNAL library calls, from the SCIP oracle's external symbol info. For each resolved-external call site it surfaces the dependency's CURRENT signature + docs as inline context (judge arity / misuse yourself) and ASSERTS a deprecated verdict when the docs mark it so. Filter by path, package, or deprecated_only. Requires an oracle run; returns a NoOracleRun / NoExternalSymbols status otherwise. Does NOT assert arity or removed/renamed drift (not instrumented / needs a cross-version baseline) — those stay context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoRestrict to external call sites in this exact file or under this directory prefix (e.g. `src/net`). Omit for the whole checkout.
limitNoMax dependency-symbol entries returned; summary counts always cover the full set.
packageNoRestrict to one dependency package — the moniker's package component, e.g. `ky` / `tokio`.
worktreeNoAbsolute path to a linked git worktree you're working in; serves that worktree's branch overlay over the indexed checkout. Omit for the indexed checkout.
deprecated_onlyNoOnly surface contracts flagged deprecated (the asserted verdict).
Behavior5/5

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

With no annotations, the description fully discloses behavioral traits: it surfaces signatures/docs, asserts deprecated verdicts, returns NoOracleRun/NoExternalSymbols if requirements not met, and explicitly states limitations (does not check arity or drift). This is comprehensive for a tool with no annotations.

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?

The description is front-loaded with the core purpose and is relatively concise, though it includes some detail that could be considered verbose. Every sentence adds value, but the length could be trimmed slightly without losing clarity.

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?

Given no output schema, the description sufficiently explains the tool's behavior, prerequisites, and limitations. However, it lacks information about the return format or output structure, which would enhance completeness for an agent.

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%, so baseline is 3. The description adds value by explaining filter purpose for path, package, and deprecated_only, but it does not mention limit or worktree parameters, which are described only in the schema. Thus, it partially compensates but not fully.

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 clearly states the tool checks dependency contracts for external library calls using SCIP oracle. It specifies the resource (external library calls) and the action (check/assert), and distinguishes it from siblings like find_callers or trace_callees by focusing on dependency contract verification.

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?

The description provides clear context on when to use the tool (for external library call checking) and prerequisites (requires an oracle run). It explicitly states what the tool does NOT do (not assert arity or renamed/removed drift), but does not mention alternative tools for those cases, which would improve guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cq27-dev/rag-rat'

If you have feedback or need assistance with the MCP directory API, please join our Discord server