Skip to main content
Glama

Script Vault: save a reusable instrument

connections_script_save
Destructive

Save a small script instrument (enumerator / tracer / parity-differ) into this company's Script Vault, so any future session finds it via connections_search_catalog and runs it LOCALLY through the local MCP's script_run. Upserts per tool_name and stores language (javascript/Node by default; bun for Bun APIs or TypeScript imports). Scripts NEVER execute on this server - they are stored and served only. Size is tier-gated by the Pass plan (free 16KB, Pro 64KB, Business and Business Plus 1MB): an over-limit save is rejected with upgrade info, and after a downgrade an over-limit stored script stays saved but LOCKS until upgrade. Write description for semantic search: what the instrument finds/does and when to reach for it - an undiscoverable script is a wasted one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe full script text. Runs locally; args arrive via CONNECTIONS_SCRIPT_ARGS (JSON env).
nameNoHuman display name (defaults to tool_name).
tagsNoOptional tags (e.g. ['sweep','i18n']).
languageNoDefault 'javascript' (run with node).
tool_nameYesStable slug, [a-z0-9_]+ (e.g. i18n_freeze_tracer). Same name = update in place.
parametersNoOptional docs of the args the script accepts ({ args: [{name, description}] }).
descriptionYesWhat it enumerates/answers, its parameters, and when to reach for it - this text IS the search index.
destructiveNotrue when running it mutates things (default false - instruments should enumerate, not mutate).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The description thoroughly discloses behavioral traits: it upserts per tool_name, never executes scripts on the server, enforces size tier limits (with rejection and locking behavior), and explains that the description is the search index. It complements the annotations (destructiveHint=true) by detailing the mutation semantics and constraints, adding significant value beyond what annotations alone convey.

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?

The description is lengthy but each sentence carries functional information: purpose, upsert, language, execution model, size limits, and description guidance. It is front-loaded with the primary action and progressively adds operational details. No redundancy; the length is justified by the tool's complexity and the need to communicate multiple constraints.

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 tool with 8 parameters, nested objects, and no output schema, the description covers purpose, usage, behavioral quirks (size tiers, locking), parameter roles, and integration with sibling tools. It addresses everything an agent needs to correctly invoke and understand the save action, including edge cases like downgrades and over-limit saves.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: it explains that tool_name is a stable slug used for upsert, that description is the search index, that language defaults to javascript/node with bun as an option, and that destructive indicates whether the script mutates things. It also connects parameters to the execution environment (CONNECTIONS_SCRIPT_ARGS).

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 a specific verb (save/upsert) and resource (script instrument into Script Vault), and it distinguishes itself from siblings like connections_script_delete, connections_script_get, and connections_search_catalog by explaining the full lifecycle (save → discover via search → run via script_run). The purpose is unmistakable.

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?

It explains when to use this tool (to persist a reusable script for future sessions) and provides context on how it integrates with search_catalog and script_run. It also gives guidance on writing descriptions for discoverability. It doesn't explicitly state when not to use it, but the naming and purpose clearly separate it from delete/get tools, and the upsert semantics are explained.

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