Skip to main content
Glama

Script Vault: fetch a script (or list all)

connections_script_get
Read-only

With tool_name: fetch ONE stored script's code + metadata (the local script_run calls this automatically - call it directly only to inspect or port code). WITHOUT tool_name: list this company's stored scripts (metadata + size + locked status, never code), paged 200 at a time - the response's total_count/next_offset say whether the list continues; pass offset to walk it. Access is tier-gated by size: a script larger than your current plan's ceiling returns script_locked_by_tier (the script is kept, not deleted - upgrade restores access).

Input Schema

NameRequiredDescriptionDefault
limitNoList mode: page size, 1-200 (default 200).
offsetNoList mode: row offset for paging (default 0). The response's next_offset is the value to pass for the following page, or null at the end.
personNoLinked person to run this call as (first name). Omit to run as the connection's holder.
projectNoWorkspace to run this call in (id or name).
tool_nameNoThe script to fetch. Omit to list stored scripts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / person
      Added value: +{
      +  "description": "Linked person to run this call as (first name). Omit to run as the connection's holder.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Workspace to run this call in (id or name).",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[]
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the read-only safety profile, and the description adds genuinely new behavioral facts: list mode never returns code, paging is 200 at a time, and oversized scripts return script_locked_by_tier with data preserved (not deleted) and restored on upgrade. That level of disclosure goes well beyond the annotations.

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 WITH/WITHOUT front-loading makes the two modes scannable and every clause carries information (paging, tier ceiling, error code). It is a dense single paragraph though, and the parenthetical about script_run could be tighter.

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?

With no output schema, the description compensates by naming the return signals (total_count, next_offset, size, locked status, script_locked_by_tier) and the tier-gating behavior. An agent has everything needed to call it correctly in either mode.

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; the description adds value by explaining tool_name's dual role (present=fetch, absent=list) and by describing the offset/next_offset walk and total_count continuation signal. It stops short of restating limit bounds or person/project semantics, so it is not a full 5.

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 names both modes precisely (fetch one stored script's code+metadata vs. list all stored scripts) and scopes each mode's return data, so an agent can distinguish it from siblings like connections_script_save or connections_script_delete without opening the schema.

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

Usage Guidelines5/5

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

It explicitly states when to call directly versus when script_run handles it internally ('call it directly only to inspect or port code'), and gives the mode-selection rule (tool_name present vs. absent). No alternative 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.

Resources