Skip to main content
Glama

llm_fs_analyze_context

Build a workspace context summary by scanning key files, then use it to inform routing decisions. Call this once at project start or after major refactors.

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?

Given no annotations, the description discloses key behaviors: scans specific files, creates a summary file, and injects that summary into system prompts for routing decisions. Lacks details on permissions or reversibility, but sufficient for a read-like operation.

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?

Description is concise (6-7 lines) with clear structure: purpose, scanning details, usage guidance, and argument list. No wasted words, front-loaded with core intent.

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?

Completely covers the tool's use case, behavior, parameters, and integration with other tools. Output schema exists externally, so return values need not be explained. Adequate for the tool's simplicity.

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?

With 0% schema description coverage, the description fully compensates by explaining both parameters: 'path' as workspace root and 'max_files' as limit, including defaults. Adds meaning beyond schema.

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 purpose: analyzing workspace files to build a routing context summary. It specifies the resource (workspace files) and output (context summary in a file). Differentiates from siblings like llm_route and llm_auto by stating it is used by them.

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 guidance on when to use: 'once at start of session or after major refactors'. It also mentions that no further action is needed for subsequent routing. Does not explicitly list alternatives but contextually distinguishes from routing tools.

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