Skip to main content
Glama

List temporary Lua files

lua_file_list
Read-only

Lists every file under the game's lua/mcpagent_tmp/ folder, including subfolders, and returns the absolute directory plus sorted relative paths; optionally relays the call to another instance.

Instructions

Lists every file under the game's lua/mcpagent_tmp/ folder, subfolders included. Result: {dir (absolute), files: [paths relative to dir, sorted]}.

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": "lua_file_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
instanceNoOptional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance.

Output Schema

NameRequiredDescriptionDefault
dirYes
nextNo
noteNo
filesYes
warningNo
next_callNo
answered_byNo
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds substantive context beyond them by stating the fixed traversal scope (subfolders included) and the exact result shape, including that paths are sorted and relative to an absolute dir. It does not mention what happens when the folder is missing or empty, but for a read-only listing the disclosure is strong.

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?

Two sentences, both front-loaded with the most important information: scope first, return shape second. There is no filler, hedging, or restatement of the tool name.

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?

The tool is simple, the parameter is fully described in the schema, an output schema exists, and annotations carry the safety profile, so the description covers what an agent needs to call it. The only minor gap is the absence of empty-folder or missing-folder behavior, which is not strictly required here.

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 description coverage is 100% and the single optional 'instance' parameter is fully documented in the schema, including the coordinator relay behavior. The description adds nothing about the parameter, which is acceptable given the schema does the work, so the baseline 3 applies.

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 gives a specific verb (lists) and a precisely bounded resource (every file under the game's lua/mcpagent_tmp/ folder, subfolders included). This is clearly distinguishable from siblings like lua_file_read, lua_file_write, and lua_file_delete, which act on file content rather than enumerating a fixed directory.

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 implied rather than stated: an agent can infer it is the discovery step before reading or deleting temp files, but the description never says when to use it or names an alternative. No prerequisites or exclusions are given, so guidance is only inferable from the scope sentence.

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