Skip to main content
Glama

get_scripts

Read a loaded Tabletop Simulator game's Lua scripts and UI XML to inspect global and object-level code, listing only entries with non-empty scripts or UI.

Instructions

Read the loaded game's Lua scripts and UI XML (read-only).

Returns {"global": {"script", "ui"}, "objects": [{"guid", "name", "type", "script", "ui"}]}, listing only objects whose script or UI is not empty.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations present, the description carries the full disclosure burden and does meaningful work: it declares read-only semantics, describes the exact return shape, and states the non-obvious filtering rule that only objects with non-empty script or UI are listed. It does not cover behavior when no game is loaded or output size concerns, keeping it short of a 5.

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?

Three compact lines: purpose first, then the return contract, then the filtering caveat. No filler, and the most decision-relevant fact (read-only) is front-loaded.

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?

No output schema exists, so the description's inline return shape is essential and adequate, and with no parameters and no annotations there is little else to document. It stops just short by not stating prerequisites (a loaded game) as a failure mode or hinting at output volume for large games.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; baseline 4 applies. The description correctly implies there is no filtering or scoping argument beyond the implicit 'loaded game' context.

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: read the loaded game's Lua scripts and UI XML, with an explicit read-only marker. It is clearly distinct from the mutating/executing siblings like run_lua or move_object, though it never names them directly.

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 intent of reading scripts is implied by the name and description, but there is no explicit when-to-use statement and no routing against alternatives such as inspect_object (single object) or run_lua (execute rather than read). Usage must be inferred.

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