Skip to main content
Glama

list_directory

Read-onlyIdempotent

List entries in a WISP game server directory without reading file contents, enabling paginated filesystem discovery before read or write operations.

Instructions

List entries in one server directory without reading file contents. Use for filesystem discovery before read or write operations; results are paginated.

Input Schema

NameRequiredDescriptionDefault
pageNo1-based result page number.
pathNoPath in the selected server filesystem, starting from its root./
per_pageNoNumber of results to return per page, from 1 to 25.
server_idNoWisp server ID. Omit to use the configured WISP_SERVER_ID default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.4.2
    • addedInput schema / properties / page / description
      Added value: +"1-based result page number."
    • addedInput schema / properties / page / minimum
      Added value: +1
    • addedInput schema / properties / path / description
      Added value: +"Path in the selected server filesystem, starting from its root."
    • addedInput schema / properties / per_page / description
      Added value: +"Number of results to return per page, from 1 to 25."
    • addedInput schema / properties / per_page / maximum
      Added value: +25
    • addedInput schema / properties / per_page / minimum
      Added value: +1
    • addedInput schema / properties / server_id / description
      Added value: +"Wisp server ID. Omit to use the configured WISP_SERVER_ID default."
  2. First observedv1.4.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description usefully adds that results are paginated and that contents are not read, which goes beyond structured fields, though it omits ordering and what each entry contains.

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 tight sentences with the purpose front-loaded and the usage cue second; nothing redundant or padded.

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?

For a simple, fully annotated read tool with a fully described schema and no output schema, the definition covers purpose, discovery sequencing and pagination. Minor gaps remain around entry contents and sort order, but nothing essential to calling it correctly is missing.

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%, with page, per_page, path and server_id fully documented in the schema. The description only echoes pagination, adding no format or semantics beyond what the schema already provides, so the baseline 3 applies.

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 concrete verb and resource ('List entries in one server directory') and adds a scope boundary ('without reading file contents') that implicitly separates it from read_file. It stops short of naming a sibling explicitly, so differentiation is inferred 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 Guidelines4/5

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

'Use for filesystem discovery before read or write operations' gives a clear usage context and sequencing cue. There is no explicit when-not guidance or named alternative for deeper inspection, but the intent is unambiguous.

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