Skip to main content
Glama
drive-it
by jedbjorn

get_script

Read-only

Retrieves a specific script revision's source code, metadata, hash, lifecycle state, provenance, promotion evidence, and linked run receipts so you can audit or reproduce a Revit automation run.

Instructions

Return one script revision's source, metadata, code hash, lifecycle state, provenance, promotion evidence, and linked run receipts.

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": {
      "scriptId": "<scriptId>",
      "revision": "<revision>"
    },
    "name": "get_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
revisionYes
scriptIdYesStable script identifier

Output Schema

NameRequiredDescriptionDefault
nameYes
runsYes
stateYes
domainYes
sourceYes
outputsYes
purposeYes
codeHashYes
revisionYes
scriptIdYes
createdAtYes
retiredAtYes
promotedAtYes
assumptionsYes
inputSchemaYes
capabilitiesYes
documentKindYes
sourceRunIdsYes
workspaceRootYes
promotionRunIdYes
expectedEffectsYes
retirementReasonYes
promotionEvidenceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

readOnlyHint=true already establishes the safety profile, and the description is consistent with it. Beyond that it mostly lists return fields that the output schema already documents, without covering behavior an agent would want, such as how 'latest' is resolved, what happens for an unknown revision, or whether revisions are immutable snapshots.

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 front-loaded sentence with no filler, though the seven-item payload enumeration partially duplicates what the output schema already declares and could be trimmed without losing selection signal.

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 two-parameter read-only fetch with an output schema present, the description is sufficient: it identifies the resource, the unit (one revision), and the parameter set is fully typed in the schema. Remaining gaps (error behavior, 'latest' resolution) are minor for a simple lookup.

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 50%: scriptId carries a description and pattern, and revision's anyOf (positive integer or the literal 'latest') is largely self-explanatory. The description adds only the notion of selecting a single revision and does not explain the integer-vs-'latest' semantics or revision ordering.

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 names a specific verb ('Return') and a precisely scoped resource ('one script revision') and enumerates the payload categories, which distinguishes it from a listing tool like search_scripts. It stops short of naming any sibling explicitly, so the differentiation is implied by the singular-revision scope rather than stated.

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 only implied: an agent can infer this is the fetch-one-revision lookup, but there is no statement of when to prefer it over get_api_reference, search_scripts, or the execute/promote family, and no prerequisites or exclusions are given.

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