Skip to main content
Glama

scaffold_widget

Generate a WidgetKit extension for your Xcode project by choosing between static TimelineProvider or configurable AppIntents-based widget types.

Instructions

Generate a WidgetKit extension: 'static' uses TimelineProvider/StaticConfiguration, 'configurable' uses the AppIntents-based WidgetConfigurationIntent/AppIntentConfiguration API (iOS 17+)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoWidget type (default: "static")
nameYesWidget name (e.g., StatusWidget)
outputPathYesDirectory to create the file in
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It adds context by explaining what each widget kind uses (TimelineProvider vs AppIntents). However, it does not disclose whether files are overwritten, naming conventions, or side effects like creating multiple files. This is moderate transparency.

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?

The description is a single sentence under 25 words. It is front-loaded with the action and resource, and every word adds value. There is no redundancy.

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

Completeness3/5

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

With 3 parameters and no output schema, the description is functional but lacks detail about what files are generated, directory structure, or naming conventions. The kind explanation helps, but completeness is average for a code generation tool.

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 description coverage is 100%, so baseline is 3. The description expands on the 'kind' parameter by explaining the API behind each option, which adds meaning beyond the schema's 'Widget type' description. It does not enhance the other parameters, but this addition justifies a score above baseline.

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?

The description clearly states the verb 'Generate' and the resource 'WidgetKit extension', and it distinguishes between 'static' and 'configurable' kinds. This differentiates it from sibling scaffold tools like scaffold_view and scaffold_viewmodel, which target different resource types.

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?

The description implies when to use this tool (when you want to generate a WidgetKit extension) but does not provide explicit guidance on when to use it vs. alternatives. Among many scaffold siblings, no exclusions or comparisons are given. The internal differentiation between static and configurable is helpful but not external usage guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sitharaj88/xcode-pilot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server