Skip to main content
Glama

Get Script Revision

get_script_revision
Read-onlyIdempotent

Get a specific past revision of a script, including its commands, so you can inspect or diff it.

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": {
      "projectId": "<projectId>",
      "scriptId": "<scriptId>",
      "version": "<version>"
    },
    "name": "get_script_revision"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionYesThe revision version number.
scriptIdYes
projectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered structurally. The description adds genuine but modest context: the response includes the revision's commands, which is what makes diffing possible. It says nothing about what happens for a nonexistent version or how large command payloads are returned.

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?

A single front-loaded sentence with no filler; the verb, resource, returned content, and purpose each earn their place.

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

Completeness3/5

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

For a simple 3-required-param read tool with annotations covering safety and no output schema, the description is barely sufficient. It gives the one return-value hint that matters (commands included) but leaves two of three parameters semantically unexplained, which is the main remaining gap.

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 only 33% – version is documented in the schema, while projectId and scriptId are bare strings in both schema and description. The description's phrase "past revision" loosely maps to version but adds no format, range, or whether version 0 means latest; it does not compensate for the coverage gap.

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?

States a specific verb and resource ("Get a specific past revision of a script") plus the returned payload ("including its commands"), which cleanly separates it from list_script_revisions and get_script without naming them. It is clear, though it never explicitly contrasts with 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?

The clause "so you can inspect or diff it" implies intended use but gives no explicit when-to-use vs. when-not guidance. It does not point to list_script_revisions for discovering versions or to restore_script_revision for rollback, so routing is left to inference.

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.