Skip to main content
Glama

axint.schema.compile

Read-onlyIdempotent

Compile minimal JSON schemas into Swift code for intents, views, components, widgets, or apps. Uses few tokens for token-light generation.

Instructions

Compile a minimal JSON schema directly to Swift, bypassing the TypeScript DSL entirely. Supports intents, views, components, widgets, and full apps via the 'type' parameter. Uses ~20 input tokens vs hundreds for TypeScript — ideal for LLM agents... Use: use for token-light JSON-to-Swift generation; use compile for full TypeScript DSL control. Effects: read-only Swift generation; writes no files and uses no network.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesWhat to compile. Determines which other parameters are relevant: intent uses params/domain/title; view uses...
nameYesPascalCase name, e.g., 'CreateEvent' for intents, 'EventListView' for views, 'StepsWidget' for widgets. Used...
titleNoHuman-readable title shown in Shortcuts/Spotlight. Intent only. E.g., 'Create Event'. Defaults to a...
descriptionNoDescription of what this intent/view/widget does. Shown to users in system UI for intents. Optional but...
componentKindNoComponent only. Optional known component shape. Use cardArchetypes for a multi-component card kit, or omit...
tokenNamespaceNoOptional Swift token enum generated by axint.tokens.ingest, e.g., 'SwarmTokens'. Generated views/components...
domainNoApple App Intent domain. Intent only. One of: messaging, productivity, health, social, finance, commerce,...
paramsNoIntent only. Parameter definitions as { fieldName: typeString }. E.g., { recipient: 'string', amount:...
propsNoView only. Prop definitions as { fieldName: typeString }. E.g., { title: 'string', count: 'int' }. Same type...
stateNoView only. State variable definitions as { fieldName: { type: 'string', default?: value } }. Generates...
bodyNoView/widget only. Raw SwiftUI code for the body, e.g., 'VStack { Text("Hello") }'. Wrapped in the struct...
displayNameNoWidget only. Human-readable name shown in the widget gallery. E.g., 'Daily Steps'. Defaults to a spaced...
familiesNoWidget only. Supported widget sizes: systemSmall, systemMedium, systemLarge, systemExtraLarge,...
entryNoWidget only. Timeline entry fields as { fieldName: typeString }. E.g., { steps: 'int' }. Do not include...
refreshIntervalNoWidget only. Timeline refresh interval in minutes. E.g., 30 for half-hourly updates. Defaults to 60.
platformNoOptional target Apple platform hint for view/widget generation. Use macOS when the host project is a Mac...
scenesNoApp only. Scene definitions for the @main App struct. At least one scene with kind 'windowGroup' is...
formatNoWhen true (default), pipes generated Swift through swift-format with Axint's house style. Falls back to raw...

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesPrimary Axint tool response text, matching the first text content block.
isErrorNoWhether Axint marked the tool response as an error.
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds that the tool performs read-only Swift generation, writes no files, and uses no network, which aligns with and expands on the annotations. It also mentions token efficiency, but does not contradict annotations.

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 compact (4-5 sentences) with front-loaded purpose and usage guidelines. Every sentence serves a function: purpose, capability, token efficiency, when to use, and effects. No superfluous content.

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?

Given the tool's complexity (18 parameters, nested objects, output schema), the description provides a clear high-level overview and differentiators. The schema handles parameter details, and the output schema covers return values. However, the description could briefly mention that it generates Swift code structs, but the schema already implies that. Overall, it is adequately complete.

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% (all parameters have detailed descriptions). The description adds only high-level context about the 'type' parameter, which is already well-documented in the schema. Baseline 3 is appropriate as the description does not significantly enhance parameter understanding beyond 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?

The description clearly states that the tool compiles a minimal JSON schema directly to Swift, bypassing the TypeScript DSL. It lists supported entities (intents, views, components, widgets, apps) via the 'type' parameter, and distinguishes from sibling tool axint.compile by emphasizing token-light generation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description explicitly says 'Use: use for token-light JSON-to-Swift generation; use compile for full TypeScript DSL control,' providing clear guidance on when to use this tool versus its sibling axint.compile.

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/agenticempire/axint'

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