Skip to main content
Glama

Lookup an Apple developer doc

apple_doc_lookup
Read-onlyIdempotent

Fetches live Apple developer documentation by framework path or URL and returns the requested node as Markdown or JSON, so coding agents can ground API answers in current source data.

Instructions

Fetch an Apple /documentation JSON node by path (e.g. 'swiftui/view', 'foundationmodels/languagemodel'). Returns live data (no cache).

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": {
      "path": "<path>"
    },
    "name": "apple_doc_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFramework path or Apple documentation URL, e.g. `swiftui/view` or `https://developer.apple.com/documentation/swiftui/view`.
formatNoResponse formatmarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.3
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.2.1

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so safety is covered. The description adds one genuine behavioral fact beyond them — 'Returns live data (no cache)' — but says nothing about network failure modes, rate limits, or auth. It also says the tool fetches a 'JSON node' while the schema's format parameter defaults to markdown, leaving the actual returned shape ambiguous.

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 short sentences with zero filler; the core action and its examples come first and the no-cache note follows. Nothing could be removed without losing information.

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 two-parameter, annotated, output-schema-less lookup this is close to sufficient, but the return value is described only as a 'JSON node' while a format enum offers markdown, so the agent cannot predict what comes back. A sentence on what the response contains and how it differs from apple_doc_get would complete it.

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 both parameters are already documented, including the URL-vs-path flexibility of path and the markdown/json enum. The description only repeats the path examples the schema already gives and never mentions the format parameter, so it adds no meaning beyond the schema.

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?

The description names a specific verb and resource ('Fetch an Apple /documentation JSON node by path') and gives two concrete path examples, so the agent knows exactly what it retrieves. It does not distinguish itself from the near-identically named sibling apple_doc_get or from apple_doc_list_framework, which is the one thing keeping it below a 5.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says when to pick this over apple_doc_get, apple_doc_list_framework, or apple_search_all. The example paths show input shape, not selection criteria, so the agent must infer routing from sibling names alone.

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