Skip to main content
Glama
xano-inc

Xano Developer MCP

Official
by xano-inc

xano_validate_xanoscript

Read-onlyIdempotent

Find syntax errors in XanoScript code by providing raw code, file paths, or directories. Returns error details with line/column positions and suggestions.

Instructions

Validate XanoScript code for syntax errors. Supports multiple input methods:

  • code: Raw XanoScript code as a string

  • file_path: Path to a single .xs file (easier than escaping code!)

  • file_paths: Array of file paths for batch validation

  • directory: Validate all .xs files in a directory

Returns errors with line/column positions and helpful suggestions for common mistakes. The language server auto-detects the object type from the code syntax.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoThe XanoScript code to validate as a string. Use file_path instead if the code contains special characters that are hard to escape. Example: "var $name:text = 'hello'\nreturn $name"
file_pathNoPath to a single XanoScript file to validate. Easier than passing code directly - avoids escaping issues. Example: "function/format.xs"
file_pathsNoArray of file paths for batch validation. Returns a summary with per-file results. Example: ["api/users/get.xs", "api/users/create.xs", "function/format.xs"]
directoryNoDirectory path to validate. Validates all .xs files recursively. Use with 'pattern' to filter specific subdirectories or files. Example: "api/users"
patternNoGlob pattern to filter files when using 'directory' (default: "**/*.xs"). Examples: "api/**/*.xs" to match only API files, "**/create.xs" to match all create files.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
validYesWhether the code passed validation without errors.
messageYesHuman-readable validation summary with error details if any.
warningsNoNumber of non-fatal warnings encountered, if any.
Behavior4/5

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

Annotations already indicate readOnly, non-destructive, idempotent. The description adds that the language server auto-detects object type and returns errors with suggestions, providing behavioral context beyond 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 concise and well-structured with bullet points for input methods. Every sentence adds value without redundancy.

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?

Given the annotations and output schema, the description covers the tool's purpose, input methods, error output, and auto-detection behavior. It is complete for a validation tool.

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 coverage is 100% with detailed descriptions. The description summarizes parameters and adds usability hints (e.g., easier than escaping), but does not add significant meaning beyond the schema. Baseline 3 is appropriate.

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 tool validates XanoScript syntax errors, lists multiple input methods, and mentions error output with positions/suggestions. It distinguishes from sibling tools (docs, version).

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?

The description explicitly advises using file_path over code when escaping is hard, and explains batch and directory validation. It provides clear usage context for each input method, though no explicit when-not or alternatives are given.

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/xano-inc/xano-developer-mcp'

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