Skip to main content
Glama

axint.validate

Read-onlyIdempotent

Validate TypeScript intent definitions and receive diagnostics for errors or warnings using 134 validation rules.

Instructions

Validate a TypeScript intent definition without generating Swift. Runs the full Axint validation pipeline (134 diagnostic rules) and returns a JSON array of diagnostics: { severity: 'error'|'warning', code: 'AXnnn', line: number, column: number, message: string, suggestion?: string }. Returns an empty array [] when validation passes. Checks intent names (PascalCase), parameter types, domain values, entity queries, widget families, view props, and app scenes. Use: use for TypeScript DSL diagnostics before Swift output; use swift.validate for existing Swift. Effects: read-only diagnostics; writes no files and uses no network.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesFull TypeScript source code containing a defineIntent() call. Must be a complete file starting with an axint import, not a code fragment.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
isErrorNo
Behavior5/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 context: 'Runs the full Axint validation pipeline (134 diagnostic rules)', 'Returns an empty array [] when validation passes', and 'Effects: read-only diagnostics; writes no files and uses no network.' No contradictions.

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?

The description is somewhat long but front-loaded with the main purpose. Every sentence adds value, though it could be slightly more concise. Still efficient and well-structured.

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

Completeness5/5

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

The tool has an output schema described in the description (diagnostics array with fields). The description covers purpose, guidelines, behavior, parameter details, and output format. It is fully complete for the agent to use correctly.

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

Parameters5/5

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

Schema coverage is 100% with a description for the 'source' parameter. The description adds meaningful constraints: 'Must be a complete file starting with an axint import, not a code fragment.' This adds value 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 the verb 'validate' and the resource 'TypeScript intent definition', and distinguishes from siblings like swift.validate and axint.compile by specifying it validates TypeScript DSL without generating Swift. It also lists specific checks (PascalCase names, parameter types, etc.).

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?

Explicit guidance: 'Use: use for TypeScript DSL diagnostics before Swift output; use swift.validate for existing Swift.' This tells the agent when to use this tool vs the alternative, and the description explains the output (diagnostics array) and when it's empty.

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