Skip to main content
Glama

Get indexed Apple documentation

apple_doc_get
Read-onlyIdempotent

Fetch Apple Developer documentation pages from a local index using a normalized framework path or URL; return Markdown or JSON with optional raw content and length limits.

Instructions

Return an Apple Developer documentation page from the local index by normalized path, e.g. swiftui/view.

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

Input Schema

NameRequiredDescriptionDefault
pathYesFramework path or Apple documentation URL.
formatNoResponse formatmarkdown
body_charsNo
include_rawNo

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, non-destructive, and closed-world, so safety is covered. The description adds that content comes from a local index, implying a fixed snapshot that may lag live Apple docs. It says nothing about truncation behavior or misses, which are the real behavioral risks here.

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?

A single front-loaded sentence with no filler, plus one inline example that carries real information. It is efficient, though for a four-parameter tool with undocumented truncation the brevity borders on under-specification rather than tightness.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description is the only place an agent can learn the return shape, yet it says nothing about it. The body_chars default of 10000 with a 25000 cap means responses can silently truncate, and neither the description nor the schema warns of that. For a retrieval tool where partial content is a realistic failure mode, this is a meaningful gap.

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 50%: path and format are documented, while body_chars and include_raw have no descriptions in either place. The description adds the normalization convention beyond the schema's looser 'framework path or Apple documentation URL', which is genuinely useful. It leaves the truncation limit and raw-inclusion flags unexplained.

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?

States a specific verb and resource: return an Apple Developer documentation page from the local index, keyed by normalized path. The example `swiftui/view` makes the path convention concrete. It does not explicitly distinguish itself from siblings like apple_doc_lookup or apple_doc_list_framework, so an agent must infer the difference.

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?

Usage is only implied: 'by normalized path' signals this is a fetch-by-known-path tool, so an agent lacking a path should look elsewhere. There is no explicit statement of when to use apple_doc_lookup or apple_doc_list_framework instead, and no mention of what happens for an unindexed path.

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