Skip to main content
Glama

Get API symbol details

get_apple_api_details
Read-onlyIdempotent

Retrieve exact declarations, parameters, return values, availability, and canonical URLs for a single Apple API symbol. Resolves ambiguous names by listing matching candidates instead of guessing.

Instructions

Get focused details for one API symbol: exact declaration(s), symbol kind, parameters, return value, availability and deprecation, parent type and related symbols, with the canonical URL. Accepts names like NavigationStack, View.onAppear, SwiftUI.View or a full signature like frame(width:height:alignment:). If several symbols match, it lists the candidates instead of guessing.

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": {
      "symbol": "<symbol>"
    },
    "name": "get_apple_api_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesSymbol name, optionally qualified: NavigationStack, View.onAppear, SwiftUI.View, frame(width:height:alignment:)
platformNoOnly symbols available on this platform: iOS, iPadOS, macOS, watchOS, tvOS, visionOS, Mac Catalyst
frameworkNoFramework to narrow the match, e.g. SwiftUI

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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 value beyond them by disclosing the response payload (availability, deprecation, parent type, related symbols, canonical URL) and the notable ambiguity rule that it lists candidates instead of guessing, which affects how an agent should handle the response.

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 sentences, front-loaded with the capability and payload, followed by accepted input forms and then the fallback behavior. No filler or redundant restatement, and the dense enumeration in sentence one is justified given there is no output schema.

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 and openWorld semantics, the description does the necessary work by describing the returned fields and the ambiguous-match behavior. The one remaining gap is what happens when no symbol matches at all (only the multiple-match case is covered), plus no note on caching or lookup scope.

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 all three parameters (symbol, platform, framework) are already documented, and the description's example forms largely restate the symbol parameter's schema description. It adds no meaning for the platform or framework narrowing parameters, so the baseline of 3 is appropriate.

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 uses a specific verb+resource ('Get focused details for one API symbol') and enumerates exactly what comes back: declarations, symbol kind, parameters, return value, availability, deprecation, parent type, related symbols, canonical URL. It implicitly separates itself from a search tool by insisting on 'one API symbol,' though it never names search_apple_docs or get_apple_doc as the alternatives, so sibling 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 Guidelines4/5

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

It gives concrete usage context by spelling out the accepted name forms (NavigationStack, View.onAppear, SwiftUI.View, full signatures like frame(width:height:alignment:)) and states the disambiguation behavior when several symbols match, which tells the agent this is a resolve-one-symbol tool. It stops short of explicit when-not guidance or naming the search/doc siblings for the case where the symbol name is unknown.

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