Skip to main content
Glama

Search Apple documentation

search_apple_docs
Read-onlyIdempotent

Search Apple developer documentation by keyword, framework, platform or page kind to find API references, articles, tutorials, sample code and guidelines, then open a result for full details.

Instructions

Search Apple's developer documentation (all frameworks, articles, tutorials, sample code and the Human Interface Guidelines) in a local index built from Apple's own catalog. Returns titles, kinds, frameworks, canonical URLs and, when known, abstracts, declarations and availability. Use get_apple_doc with a result URL for the full page.

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
kindNoPage kind filter
limitNoResults per page (default 10, max 30)
queryYesSymbol, API, framework, concept or natural-language topic
cursorNoPagination cursor from a previous result
platformNoOne of iOS, iPadOS, macOS, watchOS, tvOS, visionOS, Mac Catalyst
frameworkNoFramework or collection, e.g. SwiftUI, UIKit, Foundation, human-interface-guidelines

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 openWorld, so the safety profile is covered. The description adds genuinely new behavioral context: the data comes from a local index of Apple's catalog rather than a live crawl, and it enumerates exactly which fields come back and that some (abstracts, declarations, availability) may be absent.

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, both earning their place: the first establishes scope and data provenance, the second hands off to the companion tool. Scope is front-loaded before the return-value detail and the alternative.

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 six parameters, full schema descriptions and no output schema, the description supplies the return shape itself and points to the follow-up tool, which is enough to call it correctly. It does not explain pagination flow across cursor pages, though the schema's cursor field largely compensates.

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 coverage is 100% and every parameter carries its own description, including enum values, limits and the cursor pattern, so the baseline applies. The description mentions result URLs but adds no filtering semantics beyond what the schema already documents for query, kind, platform, framework, limit and cursor.

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 (search) plus the exact resource and coverage: Apple's developer documentation across all frameworks, articles, tutorials, sample code and HIG. It also discloses the index is local and built from Apple's own catalog, which distinguishes it from a live-fetch sibling and from get_apple_doc, which it names.

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?

The final sentence routes the agent explicitly: use get_apple_doc with a result URL for the full page, which establishes this tool as the discovery step in a two-step flow. What is missing is any negative guidance (e.g. when a direct lookup or get_apple_api_details is preferable over a broad query).

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