Skip to main content
Glama

get_documentation

Look up detailed Apple Developer documentation for a specific symbol or article, including Swift declarations, parameters, return types, and deprecations.

Instructions

Point lookup for detailed symbol or article documentation (Swift syntax declarations, parameters, return types, deprecations). Queries local SQLite database first, falling back to Apple DocC CDN. Not a search tool. Pass framework directly (e.g. framework: "SwiftUI") if known.

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": "get_documentation"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesSymbol path or relative name (e.g. "View", "GridItem", "documentation/SwiftUI/NavigationStack")
conciseNoOptional. When true, returns compact token-budgeted output with declaration, parameters, and return types, omitting verbose discussion and topic sections.
frameworkNoOptional framework name (e.g. "SwiftUI", "UIKit"). If omitted, framework is auto-detected from path or local database.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • addedInput schema / properties / concise
      Added value: +{
      +  "description": "Optional. When true, returns compact token-budgeted output with declaration, parameters, and return types, omitting verbose discussion and topic sections.",
      +  "type": "boolean"
      +}
  2. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Without annotations the description carries the full burden, and it does disclose the key behavioral trait: a local SQLite lookup with an Apple DocC CDN fallback, which implies possible network latency and ordering of resolution. It stops short of stating that the operation is read-only, whether results are cached, or what happens when a symbol is not found.

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?

Three short sentences, front-loaded with the core purpose and immediately followed by the resolution strategy and the disambiguating exclusion. Every sentence adds distinct information with no repetition.

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?

No output schema exists, yet the description enumerates what the result contains (declarations, parameters, return types, deprecations), which effectively covers return values for a lookup tool. The main remaining gap is failure behavior and any rate or latency constraints on the CDN fallback.

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 parameter meanings are already documented and the baseline is 3. The description adds only light guidance on the framework parameter (pass it when known, otherwise auto-detection), leaving the path format and concise flag entirely to the schema.

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?

"Point lookup for detailed symbol or article documentation" gives a specific verb and resource, names the content type (syntax declarations, parameters, return types, deprecations), and explicitly excludes search behavior so the agent can separate it from search_symbols or semantic_search without opening a schema.

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?

"Not a search tool" is an explicit when-not, and "Pass framework directly if known" tells the agent to supply the framework rather than let auto-detection run. It gives clear context for use but never names which sibling to use when the exact symbol path is unknown.

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