Skip to main content
Glama

Verify a symbol exists

verify_symbol
Read-onlyIdempotent

Checks whether a function, class, method, constant, or type exists in a published package version and flags deprecation, removal, or rename notes before coding against an uncertain API.

Instructions

Downloads the package's real published files and checks whether a function, class, method, constant or type exists in a given version (default: latest). Also surfaces release notes that mention it being deprecated, removed or renamed. Use before writing code with an API you are unsure of.

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": {
      "package": "<package>",
      "symbol": "<symbol>"
    },
    "name": "verify_symbol"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesIdentifier to check, e.g. "useFormState", "BaseSettings", or a dotted path like "Client.chat.completions.create" (the last segment is checked).
packageYesPackage name as published: "next", "@anthropic-ai/sdk", "pydantic", "serde", "github.com/gin-gonic/gin", "rails", "com.google.code.gson:gson", "Newtonsoft.Json", "laravel/framework", "http", "phoenix".
versionNoVersion to check: exact ("5.0.0"), loose ("5" / "5.1"), or "latest" (default).
ecosystemNoRegistry: "npm" (JS/TS), "pypi" (Python), "cargo" (Rust), "go" (Go modules), "rubygems" (Ruby), "maven" (Java/Kotlin/Scala), "nuget" (.NET), "packagist" (PHP), "pub" (Dart/Flutter), "hex" (Elixir/Erlang). Defaults to npm.npm

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the bar is lower, yet the description still adds useful substance: it discloses that real published files are downloaded (implying network cost) and that the response surfaces deprecation/removal/rename notes rather than only a boolean. It does not cover behavior for unknown packages or versions, which keeps it short of a 5.

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?

Three short sentences, front-loaded with the core behavior and ending with the usage trigger; no padding. The parenthetical "(default: latest)" duplicates what the schema already says, a small redundancy that keeps it from a 5.

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 four-parameter, no-output-schema tool the description covers what is checked, at what version, and what extra signal (release notes) comes back, which is enough to invoke and interpret it. It stops short of describing the result shape for a missing symbol versus an unknown package, leaving a minor interpretive gap.

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 the schema already documents all four parameters including ecosystem enum values and dotted-path handling. The description only restates the version default ("latest") and broadens the notion of symbol types, adding little beyond the structured fields; baseline 3 applies.

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: it downloads the package's real published files and checks whether a named symbol exists at a given version. It also enumerates what counts as a symbol (function, class, method, constant, type), which makes the tool's scope clearly distinct from dependency-checking or changelog siblings without needing to name them.

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 an explicit trigger: "Use before writing code with an API you are unsure of," which is a concrete decision rule an agent can apply. It lacks an explicit when-not to use it (e.g. preferring whats_new for general release history), but the context is clear enough to route correctly.

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