Skip to main content
Glama

llm_fs_analyze_context

Analyze workspace files to generate a compact semantic summary for routing context. Scans project files and stores summary in ~/.llm-router/context_summary.json for automatic use by routing tools.

Instructions

Analyze workspace files to build a routing context summary.

Scans key files (package.json, pyproject.toml, go.mod, Cargo.toml, README, open TODOs) and produces a compact semantic summary stored in ~/.llm-router/context_summary.json. Subsequent routing decisions inject this summary into the system prompt so cheap models have workspace context.

Call this once at the start of a project session or after major refactors. The summary is automatically used by llm_route and llm_auto — no further action required.

Args: path: Workspace root to analyze (default: current directory). max_files: Maximum files to read (default: 20).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo.
max_filesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations given, but description discloses read-only scanning of specific files, output location and downstream usage. Implies non-destructive behavior, but not explicitly stated.

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?

Concise, front-loaded with purpose, then details, usage, and args. Every sentence adds value, no fluff.

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?

Complete description: covers what it does, files scanned, output, when to call, and automatic integration. Output schema exists, so return format detail not required.

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

Parameters5/5

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

Schema coverage is 0%, but description includes an Args section explaining both parameters (path and max_files) with defaults and meaning, fully compensating.

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?

Clearly states it analyzes workspace files to build a routing context summary, specifying scanned files and purpose. Distinguishes from siblings by focusing on routing context.

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?

Provides explicit when to call ('once at start of project session or after major refactors') and notes automatic reuse by llm_route and llm_auto. Lacks explicit when-not-to-use or alternatives.

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/ypollak2/llm-router'

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