Skip to main content
Glama

Script Vault: restore a deleted script

connections_script_restore
Idempotent

Put a deleted Script Vault script back from Trash - code, parameters and description exactly as they were, under the same tool_name. A delete keeps it for your plan's Trash window. WITHOUT tool_name: list this company's deleted scripts still kept. Answers already_exists when a script of that name was saved since (delete or rename that one first), and the upgrade door when the script is past your plan's Trash window.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
script_idNoRestore by the script_id the list returned, when one name was deleted more than once.
tool_nameNoThe deleted script to restore. Omit to list deleted scripts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false), and the description adds genuinely useful context beyond them: restoration is exact and identity-preserving, deletion is retained for a plan-specific Trash window, and specific error outcomes are enumerated. It does not describe permissions or the shape of the returned list, so a 4 rather than 5.

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, densely packed with no filler, and the primary restore action is front-loaded before the listing mode and error conditions. The final sentence is somewhat compressed and run-on, which slightly hurts readability.

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?

With no output schema, the description correctly compensates by explaining what the no-argument mode returns (the company's deleted scripts) and what error answers mean (already_exists, upgrade door). For a two-param, zero-required tool this is close to complete, though permissions and list output shape remain unspecified.

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 coverage is 100%, so both parameters are already documented in the schema. The description reinforces the omit-tool_name listing behavior and adds the rationale that script_id disambiguates repeat deletions of the same name, but adds little syntax or format detail beyond structured data – baseline 3.

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?

Names a specific verb (restore) and resource (deleted Script Vault script), states exactly what is recovered (code, parameters, description, same tool_name), and adds a distinct second mode (list deleted scripts when tool_name is omitted). This clearly separates it from the sibling set (script_delete, script_save, script_get).

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?

Explicitly tells the agent when to omit tool_name (to list retained deleted scripts) versus supplying it to restore, and flags the two failure branches (already_exists, past the plan's Trash window). It stops short of naming sibling alternatives for those situations, which keeps it just under a 5.

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