Skip to main content
Glama
mishafyi

Apple Docs 2.0 MCP

Get WWDC Code Examples

get_wwdc_code_examples
Read-only

Retrieve code examples from bundled WWDC sessions by framework, topic, language, or year. Each result includes code, session title, link, timestamp, and year.

Instructions

Code examples from the bundled WWDC sessions (no network): each with its title, its session's title, link and year, the time it appears, and the code. framework keeps the examples whose code mentions it, so "SwiftUI" matches any code that imports SwiftUI; topic, language and year filter too.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoWWDC year filter ("2025", "2024", etc.).
limitNoMax examples (default: 30). Each includes code and source video info.
topicNoA topic ID from browse_wwdc_topics, such as "swift" or "swiftui-ui-frameworks", keeps that topic's sessions; any other text, such as "animation", keeps the sessions whose title or topic names contain it.
languageNoProgramming language: "swift", "objc", "javascript", "metal".
frameworkNoFramework to find examples for. Examples: "SwiftUI", "SwiftData", "RealityKit".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

The readOnlyHint annotation already covers the safety profile, and the description adds real value beyond it: 'no network' tells the agent results come from bundled local data, and it discloses the shape of each returned example. It does not mention result-count truncation or pagination, but the schema's limit parameter largely covers that.

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 that leads with the resource and provenance before detailing filter behavior. Dense but every clause carries information; the only cost is that the filter explanation is a run-on chain rather than split into digestible points.

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 5 optional params, no output schema, and a read-only annotation, the description supplies what an agent needs: what a result contains and how each filter behaves. Only the interaction between limit/default truncation and filtering is left entirely to the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description genuinely adds semantics the schema lacks: framework matching is substring-on-code ('SwiftUI matches any code that imports SwiftUI') rather than an exact framework name. This disambiguates a filter whose behavior is otherwise guessable.

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 concrete verb+resource ('Code examples from the bundled WWDC sessions') and enumerates the returned fields (title, session title, link, year, timestamp, code). It is clearly distinguishable from sibling tools like get_sample_code because it specifies WWDC sessions and bundled/local data, though it never names an alternative explicitly.

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: the filter semantics ('framework keeps the examples whose code mentions it', 'topic, language and year filter too') tell the agent how to narrow results but not when to pick this tool over search_wwdc_content, get_sample_code, or find_related_wwdc_videos. No when-not guidance or prerequisites are given.

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