Skip to main content
Glama

Validate a FiveM resource

validate_resource
Read-onlyIdempotent

Statically checks a FiveM resource: Lua syntax, fxmanifest.lua directives and referenced files, resource structure, undeclared dependencies, framework API calls against pinned QBCore/Qbox/ESX versions, unknown natives, net-event security and backdoor patterns. Returns diagnostics with severity, rule code, file and line and a fix. Code is parsed, never run.

Input Schema

NameRequiredDescriptionDefault
filesYesThe resource's text files (fxmanifest.lua, Lua, JS, HTML, JSON …) with paths relative to the resource folder. Nothing is executed.
frameworkNoFramework to check API calls against; detected from the code when omitted
resource_nameNoFolder name of the resource (used for self-references)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety bar is lower; the description still adds real value by declaring 'Code is parsed, never run' and by describing the return shape (severity, rule code, file, line, fix). It doesn't mention limits such as the 200-file / 512KB caps or runtime cost, leaving a small gap.

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?

Two sentences, front-loaded with the verb and scope, then the full checklist of checks; the final clause 'Code is parsed, never run' is a high-value closer. No filler or repetition of the title.

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?

For a 3-parameter, fully documented, annotation-covered read-only tool with no output schema, the description covers purpose, scope, non-execution behavior and the diagnostic return shape. Nothing an agent needs in order to call it correctly is missing.

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%, with the files array, the framework enum and resource_name all documented, including the note that framework is auto-detected when omitted. The description adds no parameter-level meaning beyond the schema, which is the correct baseline here.

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?

States a specific verb ('statically checks') and resource ('a FiveM resource'), then enumerates exactly what is checked: Lua syntax, fxmanifest directives, structure, dependencies, framework API versions, natives, net-event security and backdoors. That enumeration makes it trivially distinguishable from siblings like validate_server_cfg and check_compatibility.

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 the use case (static analysis of a resource bundle before running it) but never says when to pick this over check_compatibility or validate_server_cfg, nor any exclusions such as size or framework limits. Usage is inferable but not spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources