Skip to main content
Glama

search_apple_docs

Read-only

Search Apple Developer Documentation for APIs, frameworks, guides, and code samples to locate specific classes, methods, or technical references directly in your session.

Instructions

Search Apple Developer Documentation for APIs, frameworks, guides, and samples. Best for finding specific APIs, classes, or methods. Latency: typically 5-25 seconds (median about 10) because Apple streams the full result set; repeated identical queries are cached for 10 minutes. For browsing sample code projects, use get_sample_code. For WWDC videos, use the dedicated WWDC tools (list_wwdc_videos, search_wwdc_content).

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_apple_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoType of content to filter. Use "all" for comprehensive results, "documentation" for API references/guides, "sample" for code snippets. Note: "sample" returns individual code examples, not full projects. For complete sample projects, use get_sample_code instead. Default: "all".
queryYesSearch query for Apple Developer Documentation. Tips: Use specific API names (e.g., "UIViewController"), framework names (e.g., "SwiftUI"), or technical terms. Avoid generic terms like "how to" or "tutorial". Examples: "NSPredicate", "SwiftUI List", "Core Data migration", "URLSession authentication".
selectNoJev semantic selection: score the results against the query and return only the best results (1-20), each with a relevance score. Default: on when OPENROUTER_API_KEY or TYPESAFE_API_KEY (or DOCS_LIBRARIAN_JEV_PROVIDER and its key) is set, off otherwise; DOCS_LIBRARIAN_JEV_RERANK=0 forces it off. select: true while it is off is an error. Adds a Jev provider call (up to about 15 s on the classic route; relevance route with select: up to about 2 minutes).
rankingNoRanking route. "classic" = the original search and grouping. "relevance" = wide recall (expanded sub-queries and pages in the same documentation hierarchy) then Jev; relevance route with select: up to about 2 minutes. Default: DOCS_LIBRARIAN_RANKING, else "relevance".
maxResultsNoWith select on: the most results to return (1-20, default 5; use 20 for lists of members or methods). Ignored with select off.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv6.0.0
    • changedInput schema / properties / ranking / description
      Previous value: -"Ranking route. \"classic\" = the original search and grouping. \"relevance\" = wide recall (expanded sub-queries and pages in the same documentation hierarchy) then Jev; relevance route with select: up to about 2 minutes. Default: APPLE_DOCS_MCP_RANKING, else \"relevance\"."New value: +"Ranking route. \"classic\" = the original search and grouping. \"relevance\" = wide recall (expanded sub-queries and pages in the same documentation hierarchy) then Jev; relevance route with select: up to about 2 minutes. Default: DOCS_LIBRARIAN_RANKING, else \"relevance\"."
    • changedInput schema / properties / select / description
      Previous value: -"Jev semantic selection: score the results against the query and return only the best results (1-20), each with a relevance score. Default: on when OPENROUTER_API_KEY or TYPESAFE_API_KEY (or APPLE_DOCS_MCP_JEV_PROVIDER and its key) is set, off otherwise; APPLE_DOCS_MCP_JEV_RERANK=0 forces it off. select: true while it is off is an error. Adds a Jev provider call (up to about 15 s on the classic route; relevance route with select: up to about 2 minutes)."New value: +"Jev semantic selection: score the results against the query and return only the best results (1-20), each with a relevance score. Default: on when OPENROUTER_API_KEY or TYPESAFE_API_KEY (or DOCS_LIBRARIAN_JEV_PROVIDER and its key) is set, off otherwise; DOCS_LIBRARIAN_JEV_RERANK=0 forces it off. select: true while it is off is an error. Adds a Jev provider call (up to about 15 s on the classic route; relevance route with select: up to about 2 minutes)."
  2. Changed3 schema fields changedv5.1.0
    • changedInput schema / properties / maxResults / description
      Previous value: -"With select on: the most results to return (1-5, default 5). Ignored with select off."New value: +"With select on: the most results to return (1-20, default 5; use 20 for lists of members or methods). Ignored with select off."
    • addedInput schema / properties / ranking
      Added value: +{
      +  "description": "Ranking route. \"classic\" = the original search and grouping. \"relevance\" = wide recall (expanded sub-queries and pages in the same documentation hierarchy) then Jev; relevance route with select: up to about 2 minutes. Default: APPLE_DOCS_MCP_RANKING, else \"relevance\".",
      +  "enum": [
      +    "classic",
      +    "relevance"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / select / description
      Previous value: -"Jev semantic selection: score the results against the query and return only the best 1-5, each with a relevance score. Default: on when APPLE_DOCS_MCP_JEV_RERANK=1 is set, otherwise off. select: true while it is not enabled is an error. Adds a Jev provider call (up to about 15 s)."New value: +"Jev semantic selection: score the results against the query and return only the best results (1-20), each with a relevance score. Default: on when OPENROUTER_API_KEY or TYPESAFE_API_KEY (or APPLE_DOCS_MCP_JEV_PROVIDER and its key) is set, off otherwise; APPLE_DOCS_MCP_JEV_RERANK=0 forces it off. select: true while it is off is an error. Adds a Jev provider call (up to about 15 s on the classic route; relevance route with select: up to about 2 minutes)."
  3. First observedv2.1.1

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only supply readOnlyHint=true, and the description goes well beyond that with operational facts an agent needs: 5-25s latency with ~10s median from full-result streaming, and a 10-minute cache for identical queries. That latency and cache disclosure is exactly the kind of planning information annotations cannot carry.

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?

Front-loaded with purpose and best-use case, then latency, then routing — a sensible order with no filler sentences. The latency sentence is slightly over-packed ("median about 10" restates the range) but every sentence carries information.

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 5-parameter search tool with no output schema, it covers routing, timing, and caching well. The remaining gap is that it never hints at what a result contains (title, URL, snippet, hierarchy path), which matters when choosing between ranking modes or deciding whether a follow-up get_* call is needed.

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%, with select, ranking, maxResults, and type each documented in detail (defaults, env-var overrides, error conditions, timing). The prose description adds essentially nothing about parameters beyond what the schema already states, so the baseline of 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?

States a specific verb and resource ("Search Apple Developer Documentation") plus the content types covered (APIs, frameworks, guides, samples), and immediately narrows its niche with "Best for finding specific APIs, classes, or methods." It also explicitly disclaims two adjacent capabilities (full sample projects, WWDC videos), so an agent can route without opening a schema.

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?

Gives clear usage context (specific API/class/method lookup, not browsing) and names two alternatives with conditions: get_sample_code for full sample projects and the WWDC tools for videos. It stops short of distinguishing itself from other documentation-search siblings, so coverage is strong but not exhaustive.

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