Skip to main content
Glama

Exact API of a symbol

api
Read-only

Retrieves exact signatures and doc comments for installed library symbols, enabling agents to verify version-specific usage offline without rate limits.

Instructions

The exact signature and doc comment of one symbol in the installed version, with overloads, members (for classes, interfaces, structs, traits) and other matches. Accepts zod.z.object, z.object, tokio::spawn, axum::Router::route, pydantic.BaseModel.model_dump, gin.Context.JSON.

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

Input Schema

NameRequiredDescriptionDefault
rootNoAbsolute path of the project (defaults to the client's workspace root or the server's working directory).
symbolYesSymbol path, optionally prefixed by the package name.
tokensNoAnswer budget in tokens (default 1200).
offlineNoUse only installed and cached files for this call (no package or upstream downloads).
packageNoPackage or npm public import path (e.g. zod/v4). Defaults to the package root export; unavailable or ambiguous imports are reported, not substituted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful behavioral context that results reflect the installed version and may include overloads, members, and 'other matches', but says nothing about lookup failure, ambiguity resolution, or how the token budget truncates results.

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 with no filler: the capability and its scope come first, and the example list follows as compact proof of accepted formats. Every element earns its place.

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?

With five parameters at full schema coverage and no output schema, the description carries the return-shape burden and does so by enumerating signature, doc comment, overloads, and members. Minor gaps remain around not-found and ambiguous-symbol behavior, which matter for a single-symbol lookup tool.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description goes beyond the schema's generic 'Symbol path' wording with concrete cross-language examples (zod.z.object, tokio::spawn, axum::Router::route, pydantic.BaseModel.model_dump, gin.Context.JSON) that teach the accepted syntax. It adds no meaning for root, tokens, offline, or package, which the schema already documents.

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?

The description names a concrete resource and scope: the exact signature and doc comment of a single symbol in the installed version, including overloads and members. It is clearly narrower than the sibling tools 'docs' and 'resolve' by virtue of 'exact' and 'one symbol', though it never names those alternatives explicitly.

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 only implied: an agent can infer this is the tool for precise signatures rather than general documentation, but there is no explicit when-to-use or when-not-to-use statement, and no routing guidance relative to 'docs' or 'resolve'. The examples clarify input shape, not tool selection.

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