Skip to main content
Glama
xano-inc

Xano Developer MCP

Official
by xano-inc

xano_validate_xanoscript

Read-onlyIdempotent

Validate XanoScript code for syntax errors using code strings, file paths, or directories. Get detailed error reports with line numbers and fix 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?

Beyond annotations (readOnly, idempotent), the description adds that it returns errors with line/column positions and helpful suggestions, and that the language server auto-detects object types. No contradictions with 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?

Concise yet comprehensive. Uses bullet points for clarity, front-loads the purpose, and each sentence adds information. No fluff.

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 complexity (5 parameters), high schema coverage, annotations, and output schema, the description fully covers how to use the tool, what inputs are available, and what to expect as output. No gaps.

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 coverage is 100%, so baseline is 3. The description adds value by explaining the purpose of each parameter and offering usage tips (e.g., easier than escaping). This justifies a higher score.

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 it validates XanoScript code for syntax errors, with a specific verb (validate) and resource (XanoScript code). It differentiates itself from sibling tools (documentation, version) by focusing on validation.

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?

Provides clear guidance on when to use each input method (e.g., file_path over code for escaping issues). However, does not explicitly state when not to use this tool or mention alternatives beyond its own parameters.

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