Skip to main content
Glama

gdscript_sync_file

Idempotent

Notify Godot's LSP that a GDScript file was modified and retrieve updated diagnostics. Optionally provide file content to avoid disk read.

Instructions

Notify Godot's LSP that a file was modified and get updated diagnostics. Returns: diagnostics (errors/warnings) for the synced file. WHEN TO CALL: After using Edit/Write tools to modify a .gd file. The LSP does not watch files, so you must call this to refresh analysis. Optionally pass content directly to avoid reading from disk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesAbsolute or relative path to the modified .gd file
contentNoFile content to sync (optional, reads from disk if not provided)
Behavior4/5

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

Annotations include idempotentHint=true, which indicates safe repeated calls. The description adds behavioral context beyond annotations by stating the tool triggers LSP notification and returns diagnostics, and that passing content avoids disk reads. 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?

Three sentences, each serving a clear purpose: purpose, return value, usage guidance. No redundant information. Front-loaded with the core action. Every sentence earns its place.

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 schema covers all parameters, annotations are present, and the description explains return values and usage context, the description is largely complete. It could mention error handling or prerequisites, but for a notification tool it is sufficient.

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 both parameters documented. The description adds meaning beyond schema by explaining the purpose of the optional 'content' parameter: 'Optionally pass content directly to avoid reading from disk.' This helps the agent understand when to use the optional parameter.

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's function: 'Notify Godot's LSP that a file was modified and get updated diagnostics.' It explicitly mentions the return value (diagnostics) and distinguishes itself from sibling tools like gdscript_sync_files (plural) by focusing on a single file sync.

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 provides explicit when-to-call guidance: 'After using Edit/Write tools to modify a .gd file.' It also explains why (LSP does not watch files) and gives the option to pass content directly. No explicit when-not-to-call is given, but the usage context is clear.

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/pzalutski-pixel/godotlens-mcp'

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