Skip to main content
Glama

search_apple_docs

Read-only

Search Apple Developer Documentation for specific APIs, frameworks, guides, and code examples to locate the references and technical details you need.

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 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).
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: APPLE_DOCS_MCP_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. 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)."
  2. First observedv2.1.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, yet the description discloses high-value operational behavior: 5-25s latency (median ~10s) from streaming the full result set, a 10-minute cache for identical queries, and that re-ranking adds up to ~2 minutes on the relevance route with select. Those latency and caching characteristics materially affect how an agent should call and retry this tool, and cannot be derived from the annotation.

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?

Four sentences, front-loaded with purpose and the best-use case, followed by cost and routing. Every sentence carries real information, though the latency clause is dense and could be trimmed slightly without losing the signal.

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

Completeness5/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 output schema, the description supplies the missing pieces an agent needs: expected latency, caching behavior, and which sibling to use for adjacent needs. All parameters are fully documented in the schema, so no parameter gaps remain.

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%, and the schema already documents query tips, the type enum, select gating on API keys, ranking defaults, and maxResults bounds in detail. The description adds no parameter-level meaning beyond that, 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 covered artifacts (APIs, frameworks, guides, samples), and narrows scope with "Best for finding specific APIs, classes, or methods." It also names the siblings it is not (get_sample_code, WWDC tools), so an agent can route without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: use this for specific APIs/classes/methods, use get_sample_code for browsing sample code projects, and use list_wwdc_videos/search_wwdc_content for videos. It also implicitly scopes out generic exploratory queries through the "Best for" framing, leaving little to inference.

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