Skip to main content
Glama

apply_script_patch

Apply exact-text script edits atomically with source-hash and match-count preconditions, plus dry-run, idempotency, verification, and rollback to ensure safe Roblox script changes.

Instructions

Atomically applies exact-text script edits with source-hash and match-count preconditions, dry-run, idempotency, verification, and rollback.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoExact script path for a single-script patch.
editsNo
changesNo
dry_runNoValidate and preview without retaining mutations.
idempotency_keyNoRequired for live mutation; caller-stable key preventing duplicate application.
expected_source_hashNoRequired live source fingerprint when available.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses atomicity, exact-text matching preconditions, dry-run capability, idempotency, verification, and rollback—far more than typical mutation tools. While it doesn't detail failure semantics or permissions, the disclosed traits give an agent a strong sense of the tool's safety profile and side effects.

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 a single sentence with dense, relevant information. Every word contributes: atomicity, exact-text edits, preconditions, and feature list. It is front-loaded with the core action and avoids redundant or filler text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex tool (6 parameters, nested objects, no output schema, no annotations), but the description only provides a high-level summary. It fails to mention critical operational details such as the requirement for an idempotency_key during live mutation, how dry_run interacts with other parameters, or what verification/rollback entail. An agent would need the full schema and inference to use this correctly, making the description incomplete for a tool of this complexity.

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 67%, so the schema does most of the work. The description adds high-level context by connecting source-hash, match-count, and dry-run to the respective parameters (expected_source_hash, expected_count, dry_run), which helps interpretation. However, it does not clarify the distinction between `path`+`edits` and the `changes` array, nor the behavior of `replace_all` vs `expected_count`. This is acceptable but not exceptional.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool applies exact-text script edits with specific preconditions (source-hash, match-count) and features (dry-run, idempotency, verification, rollback). It uses a specific verb and resource, making the purpose unambiguous. However, it does not explicitly differentiate from sibling tools like generate_change_plan or verify_change, so it misses the top score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives such as generate_change_plan, verify_change, or rollback_change. The description implies usage through its feature list but does not state scenarios, prerequisites, or exclusions. This is a significant gap for a tool with many siblings.

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/DogTheSeller/RobloxSuperMCP'

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