Skip to main content
Glama

Save Project

save_project
DestructiveIdempotent

Saves open Xojo project changes from IDE memory to disk so set_code/edit_code edits persist. Use before disk edits to IDE-changed files, not before reverting disk edits.

Instructions

Saves the open Xojo project, writing the IDE's in-memory copy over the project's files on disk. Returns 'Project saved.', or 'No changes to save.' when no file changed within two seconds. Call it when IDE-side edits (set_code, edit_code, create_project_item and the like) should persist, and before editing on disk a file you changed through the IDE. Never call it between editing a file on disk and revert_project: it would overwrite the disk edit. Needs the Xojo IDE running with the project open.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description adds the concrete consequences behind that: disk files are overwritten, edits made on disk can be lost in one specific ordering, the IDE must be running with the project open, and the exact return strings including the two-second no-change window.

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?

Three sentences, each doing distinct work: mechanism, when to call, when not to call, plus a precondition. It is dense rather than padded, though the precondition about the IDE running could have been folded into the opening sentence for tighter front-loading.

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 zero-parameter mutation with no output schema, the description covers mechanism, preconditions, return values, and the dangerous ordering relative to revert_project — everything an agent needs to call it safely.

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?

The tool takes no parameters, so there is nothing for the description to disambiguate; baseline 4 applies.

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 and resource plus the exact mechanism: writes the IDE's in-memory copy over the project's files on disk. This clearly distinguishes it from sibling write tools like set_code, edit_code, or revert_project that touch either memory or disk alone.

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 when-to-use (after IDE-side edits from set_code/edit_code/create_project_item should persist, and before editing on disk a file changed through the IDE), explicit when-not (never between a disk edit and revert_project, since it would overwrite the disk edit), and it names the sibling that plays the alternative role.

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