Skip to main content
Glama

get_script_version

Read-only

Retrieve the full text of a saved script version from a session by version ID, so you can review or restore prior script content.

Instructions

Get the full text of one saved version.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session": "<session>",
      "version": "<version>"
    },
    "name": "get_script_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionYesSession: 'Project/folder', an absolute path or its id (from get_session). Old paths still work.
versionYesVersion id from the history list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2026.11.11
    • changedInput schema / properties / session / description
      Previous value: -"Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move."New value: +"Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work."
  2. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds nothing beyond that: it doesn't say whether versions are immutable snapshots, whether the text is truncated or paginated for large scripts, or what happens if the version id is stale. For a retrieval tool of this size, a 2 is appropriate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence with no waste, which is good, but it is under-specified rather than front-loaded with useful detail. Brevity here comes at the cost of guidance rather than from efficiency.

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?

For a two-parameter read tool with full schema coverage and clear annotations, the description is barely sufficient: it establishes the object retrieved but omits how to obtain the version id (delegated to the schema), whether output is raw script text, and any size or error behavior. There is no output schema to explain the return value, so the description should have carried that burden.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description contributes nothing to parameter meaning. It only says "one saved version", while the schema already documents both session and version fully, including path formats and where version ids come from; the description simply restates the targeted object.

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 states a specific verb (get) and resource (the full text of one saved version), which distinguishes it from sibling tools like script_history (listing versions) and restore_script_version (rollback). It is clear but doesn't explicitly name those siblings.

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

Usage Guidelines3/5

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

Usage is implied: fetch a specific version's content using a version id obtained from a history listing. The schema's mention of "from the history list" hints at the workflow, but the description itself gives no explicit when-to-use or when-not-to-use guidance, nor does it name alternatives such as restore_script_version.

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