Skip to main content
Glama

code_skeleton

Read-onlyIdempotent

Retrieve a workspace or folder structure as an ASCII tree with file sizes, line counts, solution files, and NuGet summaries to understand existing code before changes.

Instructions

Retrieves the structure of a workspace, or of one folder in it: ASCII folder tree with file sizes and line counts, solution files, and a NuGet summary per project (package versions, SDK, target framework). WILDCARD: pass workspace='*' to list all registered workspaces. OVERVIEW (no depth): folders open level by level until a size budget is used; every folder left closed is marked ▸ with a one-line summary (folders, files, size, large files, main extensions, project file), so even a very large workspace fits. Open a ▸ folder by calling again with its path; pass depth to show an exact number of levels (a large depth shows the whole tree). A folder with many entries is paged with page; folders with many files are collapsed, list them with code_folder_files. To see what changed since a point in time use code_changes_since. Use this BEFORE any change to understand the existing structure.

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": {
      "workspace": "<workspace>"
    },
    "name": "code_skeleton"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoOptional: page of the folder's own entries when it has more than fit at once, starting at 1 (default 1)
pathNoOptional: folder to show, relative to the workspace root (e.g. 'src/Orders'). Leave empty for the root.
depthNoOptional: levels below the folder to show (1 = its direct entries). Leave empty for the overview, which opens folders until its size budget is used.
guideNotrue: put the code guide first in the result. Use on your first code call, or when told it changed.
workspaceYesWorkspace name as shown in Waymark. Use '*' to list all workspaces.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover read-only/idempotent/non-destructive, and the description adds substantive behavior beyond them: the overview's size budget, ▸ markers on closed folders with one-line summaries, re-invocation by path to expand, and paging of folders with many entries. This is exactly the kind of result-shaping behavior an agent needs to know before calling.

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?

Front-loaded with a clear one-sentence purpose, then behavior, then alternatives in a logical order with no filler. It is dense and uses several all-caps labels and parentheticals, which slows scanning slightly, but every sentence carries information.

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

Completeness5/5

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

There is no output schema, and the description compensates by describing the shape of the result (tree, sizes, line counts, NuGet/package/SDK/target framework summary) including how truncated folders are represented. Combined with the 5 fully documented parameters, an agent has enough to call this correctly on the first attempt.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: the '*' wildcard for workspace, the expand-a-▸-folder pattern for repeating with a path, and the tradeoff between overview and an explicit depth ('a large depth shows the whole tree'). It does not elaborate on the guide parameter or page semantics beyond what the schema already states.

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?

States a specific verb and resource ('Retrieves the structure of a workspace, or of one folder in it') and enumerates the returned content: ASCII folder tree with file sizes and line counts, solution files, and a NuGet summary per project. This is clearly distinguishable from siblings like code_folder_files or code_outline.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use depth for an exact level count, pass workspace='*' to list all workspaces, use code_folder_files for folders with many files, and code_changes_since for what changed. It also states the pre-condition 'Use this BEFORE any change to understand the existing structure.'

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