Skip to main content
Glama

GetScriptRun

Reads a script run by its handle to return its state and result, or lists the caller's script runs when no handle is provided.

Instructions

[read-only] Reads one of the caller's script runs by its handle, with its state and result, or lists the caller's script runs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "GetScriptRun"
  }
}

Input Schema

NameRequiredDescriptionDefault
handleNoThe handle a script run was started with; without it, the caller's script runs are listed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv26.5.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose that the tool is read-only, that scope is limited to the caller's own runs, and that state and result are returned — useful context. It says nothing about permissions, result size, pagination for the list mode, or what happens with an unknown handle.

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?

One sentence, front-loaded with the '[read-only]' marker and the primary behavior, with the list fallback trailing. Nothing is wasted, though the bracket tag and the two behaviors packed into one clause slightly blur the read.

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?

For a one-optional-parameter read tool with no output schema, the definition covers purpose, scope, mode selection, and roughly what comes back (state and result). Only list-mode specifics such as ordering or volume are left unstated.

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% and the single parameter already documents that omitting the handle triggers listing. The description restates that semantics without adding format or validation detail, so the schema does the heavy lifting and the baseline applies.

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 ('Reads one of the caller's script runs by its handle') and discloses the dual behavior of listing when no handle is given. It is clearly a read operation against script runs, distinguishable in spirit from RunScript/StopScript, though it never names a sibling to contrast with.

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?

Guidance is implied through the mode switch: supply a handle to read one run, omit it to list. There is no explicit when-to-use versus GetBackgroundRun or other run-inspection siblings, and no stated exclusions.

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

Deploy Server

Other Tools