Skip to main content
Glama

Get an Apple documentation page

get_apple_doc
Read-onlyIdempotent

Fetch a complete Apple documentation page as structured Markdown, including declarations, parameters, availability, and related topics, from canonical developer.apple.com URLs.

Instructions

Retrieve a complete Apple documentation page as structured Markdown: declarations, parameters, return values, availability and deprecation, discussion with code listings, topics, relationships and see-also. Accepts canonical https://developer.apple.com/documentation/..., /design/human-interface-guidelines/... and /tutorials/... URLs (append ?language=objc for Objective-C). Content comes from Apple, cached locally for 7 days.

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": {
      "url": "<url>"
    },
    "name": "get_apple_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesCanonical Apple documentation URL, e.g. https://developer.apple.com/documentation/swiftui/view (add ?language=objc for Objective-C)
max_relatedNoMax items per related group (default 10, max 30)
include_relatedNoInclude topics, relationships and see-also (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavior: content is sourced from Apple and cached locally for 7 days, which tells the agent results may be stale. It omits any mention of failure modes for invalid or redirected URLs.

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?

Two sentences, front-loaded with what is retrieved before the accepted-URL constraints. The first sentence is a long comma-separated list but every item conveys payload content, so nothing is padding.

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 no output schema, the enumerated content sections effectively describe the return shape, and caching plus URL formats cover the main behavioral unknowns for a 3-parameter fetch tool. What remains thin is behavior for malformed or non-canonical URLs and whether related sections degrade gracefully when absent.

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 max_related (default 10, max 30) and include_related (default true), so baseline is 3. The description adds only the ?language=objc convention, which the url parameter's own description also carries; include_related and max_related get no extra narrative meaning.

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?

Uses a specific verb ("Retrieve") plus a specific resource ("complete Apple documentation page") and enumerates the exact content sections returned, so the agent knows precisely what it gets. It never names or contrasts the sibling tools (search_apple_docs, get_apple_api_details), so differentiation is inferred rather than stated.

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 accepted URL shapes (documentation, design/human-interface-guidelines, tutorials) and the ?language=objc modifier give concrete invocation guidance. However, there is no statement of when to prefer this over search_apple_docs or get_apple_api_details, and no exclusion for non-canonical or redirected URLs.

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