Skip to main content
Glama

search_symbols

Search Apple framework symbols by exact name, wildcard pattern, or keyword using local lexical matching, with optional framework, platform, and symbol type filters.

Instructions

Lexical symbol search using SQLite FTS5 BM25 with exact-title boosting and wildcard pattern matching (*, ?). Accepts optional framework, platform, and symbolType. Purely local lexical search; does not call Gemini.

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

Input Schema

NameRequiredDescriptionDefault
queryYesThe search query: can be an exact symbol name ("NavigationSplitView"), wildcard pattern ("Grid*"), or keyword ("button style")
platformNoOptional platform filter (iOS, macOS, watchOS, visionOS)
frameworkNoOptional framework name to scope search (e.g. "SwiftUI", "UIKit", "SwiftData"). If omitted, searches across all indexed Apple frameworks.
maxResultsNoOptional maximum number of results (default 20, max 100)
symbolTypeNoOptional symbol kind filter (struct, class, protocol, func, etc.)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • changedInput schema / properties / query / description
      Previous value: -"The search query: can be an exact symbol name (\"NavigationSplitView\"), wildcard pattern (\"Grid*\"), or conceptual natural language intent (\"background location updates\", \"sheet dismiss gesture\")"New value: +"The search query: can be an exact symbol name (\"NavigationSplitView\"), wildcard pattern (\"Grid*\"), or keyword (\"button style\")"
  2. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavioral traits: ranking comes from BM25 with exact-title boosting, wildcard operators are honored, and the search is fully local with no Gemini/API call — meaningful cost and latency information for an agent. Gaps remain around whether a pre-built index is required and what a failed/empty search looks like.

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 tightly packed sentences, front-loaded with the core purpose and matching semantics. The middle sentence listing "optional framework, platform, and symbolType" largely duplicates the schema and omits maxResults, so it is the one line that does not fully earn its place.

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

Completeness3/5

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

For a five-parameter search tool with no annotations and no output schema, the description covers purpose, matching modes, and the local-execution model well. It stops short of the operational details an agent would want — index prerequisite, result shape, and pagination/limit interaction — leaving meaningful gaps for a tool of this complexity.

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 five parameters including maxResults are already documented, which sets the baseline at 3. The description adds only one piece of new meaning — the explicit '?' wildcard character alongside '*' — and otherwise restates the framework/platform/symbolType filters that the schema already explains.

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 concrete verb and resource ("Lexical symbol search") plus the mechanism (SQLite FTS5 BM25) and matching modes. It implicitly contrasts with a semantic sibling via "Purely local lexical search; does not call Gemini," but never names the alternative, so differentiation is inferential rather than explicit.

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?

The phrase "Purely local lexical search" hints that this is the exact/keyword-matching path rather than a meaning-based one, and the wildcard mention signals when pattern matching applies. However, there is no explicit when-to-use/when-not-to-use statement and no named alternative, leaving the routing decision to inference.

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