Skip to main content
Glama

get_wwdc_code_examples

Read-only

Browse code examples from WWDC sessions to find implementation patterns and new API usage. Filter by year, topic, language, or framework, and get each example with its session context.

Instructions

Browse all code examples from WWDC sessions. Perfect for finding implementation patterns, seeing new API usage, or learning by example. Each result includes the code and its session context.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_wwdc_code_examples"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoWWDC year filter ("2026", "2025", etc.).
limitNoMax examples (default: 30). Each includes code and source video info.
topicNoTopic ID or concept keyword. Can use exact topic IDs ("swiftui-ui-frameworks", "machine-learning-ai", etc.) for precise filtering, or general keywords like "animation", "performance", "concurrency" for broader search.
languageNoProgramming language: "swift", "objc", "javascript", "metal".
frameworkNoFramework to find examples for. Examples: "SwiftUI", "SwiftData", "RealityKit".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv6.0.0
    • addedInput schema / properties / year / pattern
      Added value: +"^\\d{4}$"
  2. First observedv2.1.1

TDQS

A3.6/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes this is a safe read operation, and 'Browse' is consistent with that. The description contributes the return-content shape ('each result includes the code and its session context'), which matters since there is no output schema, but says nothing about ordering, pagination, or how results are truncated at the limit.

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?

Three short sentences with the resource scope front-loaded and no redundancy. The middle sentence is slightly promotional ('Perfect for...') but still carries selection-relevant information.

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?

All five parameters are optional and fully described in the schema, and the description states what the results contain, which compensates for the missing output schema. Only pagination/ordering behavior and guidance against non-WWDC sources remain unaddressed, which is minor.

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 year, limit, topic, language, and framework are all documented in the input schema, including topic-ID vs keyword usage and the default limit of 30. The description adds no parameter meaning beyond that, so the baseline of 3 applies.

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: 'Browse all code examples from WWDC sessions.' The WWDC-session scoping plus the note that each result carries code and session context lets an agent distinguish it from generic sample-code or video tools, though it never names a sibling explicitly.

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?

Gives clear use-case context ('finding implementation patterns, seeing new API usage, or learning by example'), which tells an agent when this tool is a good fit. It stops short of exclusions or naming an alternative for broader/non-WWDC code searches.

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