Skip to main content
Glama

generate_skeleton_view

Generate a concise skeleton view of a source file by stripping function and method bodies, preserving declarations and JSDoc comments with line numbers.

Instructions

Generates a token-optimized representation of a source file by stripping function and method bodies, keeping only JSDocs and declarations with line numbers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesAbsolute path to the target source file
project_rootYesAbsolute path to the TypeScript project root (must contain tsconfig.json)
include_jsdocNoWhether to preserve JSDoc annotations
include_private_membersNoWhether to list private/internal symbols
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explicitly reveals the core transformation (removing function/method bodies, preserving JSDoc and declarations with line numbers), which is the essential behavioral trait. It does not mention side effects or return details, but the described behavior is clear and sufficient for basic understanding.

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?

The description is a single, well-structured sentence that front-loads the purpose ('Generates a token-optimized representation') and efficiently conveys the mechanism. There is zero redundant or filler content, making it highly concise.

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 straightforward, and the description covers its transformation logic and output basis (declarations with line numbers). It does not specify the return format or side effects, but given the strong schema coverage and simple nature, the description is generally complete for an agent to select and invoke the tool.

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?

The schema covers 100% of parameters with meaningful descriptions (file_path, project_root, include_jsdoc, include_private_members). The tool description itself adds no parameter-specific semantics beyond what the schema already provides, so the baseline score of 3 is appropriate.

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 clearly states the tool's action ('Generates a token-optimized representation'), the target resource ('a source file'), and the transformation method ('stripping function and method bodies, keeping only JSDocs and declarations with line numbers'). This is specific and distinguishes it from sibling tools, which focus on analysis or diffing rather than compact source representation.

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?

The description implies its usage for generating a leaner view of source files for context-constrained tasks, but it does not explicitly state when to prefer this tool over alternatives or when not to use it. No exclusions or references to sibling tools are provided, so the guidance is only implied.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vola-trebla/ast-impact-mapper-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server