Skip to main content
Glama

directory_get

Read-only

Read one chunk of the workspace directory snapshot

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": {
      "workspaceSlug": "<workspaceSlug>"
    },
    "name": "directory_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNo
workspaceSlugYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint=false, and openWorldHint=false, so safety and scope are covered structurally. The description adds the meaningful detail that reads are chunked and operate against a snapshot, implying consistent point-in-time results rather than live listings. It still omits chunk size, ordering guarantees, and cursor expiration or error behavior, which matter for a paged read.

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?

A single front-loaded sentence with no filler; the core concept (chunked directory read) leads. Brevity here shades into under-specification rather than verbosity, but the writing itself is efficient and well-ordered.

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

Completeness2/5

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

This is a paged read with a nested query object, no schema descriptions, and no output schema, so the description must explain iteration and result shape. It does neither: no page size, no statement of what a chunk contains, no way to know the read is finished. Adequate only as a label, not as an instruction for correct invocation.

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% with two parameters (workspaceSlug required, nested query.cursor), so the description carries the full burden and does not meet it. It never says what workspaceSlug identifies, that cursor is an opaque token from a prior response, or what omitting query means (presumably first chunk). 'One chunk' only loosely implies cursor semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'Read' and the resource 'workspace directory snapshot' are stated, and 'one chunk' signals a paginated view. But 'directory snapshot' is never explained (files? folders? what entries?), and nothing distinguishes it from siblings like workspace_get, drive_get, or file_get. An agent cannot tell from the description what this returns that those do not.

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

Usage Guidelines2/5

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

There is no guidance on when to call this versus other get/list tools, no prerequisites, and no mention of how iteration works (when to pass a cursor, when to stop). The pagination concept is only hinted at by the word 'chunk', leaving selection between alternatives entirely 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.