Skip to main content
Glama

list_tmp

Read-only

Lists files and directories in an agent's forwarded /tmp, returning type, size in bytes, and modification time; paths are relative and traversal or escaping symlinks are rejected.

Instructions

List files and directories in an agent's forwarded /tmp with type, size in bytes, and mtime. Paths are relative to that agent's tmp directory; traversal or symlinks escaping it are rejected.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "list_tmp"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
agent_idYes
recursiveNo
max_entriesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds real behavioral context beyond that: output fields (type, size in bytes, mtime), the scoping rule that paths are relative to the specific agent's tmp directory, and the security behavior that traversal or symlink escapes are rejected. It does not disclose pagination/truncation behavior for max_entries, which leaves one behavioral gap.

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, no filler, and the core purpose plus returned fields are front-loaded before the path-safety constraint. Every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value explanation is not required, and the safety constraint is well covered. However, with four undocumented parameters and no notes on recursion depth or truncation at max_entries, the definition is not fully complete for an agent to predict the call's behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four parameters, so the description must compensate but largely does not. It clarifies only the 'path' parameter (relative to the agent's tmp dir, escaping rejected); 'recursive' and 'max_entries' — the two parameters that most affect output shape — are never mentioned, leaving the agent to guess their effect.

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 ('List') and resource ('files and directories in an agent's forwarded /tmp') and enumerates the returned fields (type, size in bytes, mtime). It is clearly distinct from mutation siblings like remove or resurrect, though it does not explicitly contrast itself with the close siblings list, grep_tmp, and read_tmp.

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 — the agent should call this to enumerate a tmp directory — but there is no explicit when-to-use guidance and no routing to alternatives such as grep_tmp for searching or read_tmp for file contents. The agent must infer the boundary from the sibling names alone.

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