MCP Tool
get_file_summary
Symbols + imports for one file.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
filepath | string | Yes | Relative file path (e.g. src/auth/login.ts) |
Sample call
json
{ "filepath": "src/auth/login.ts" }Sample output
bash
src/auth/login.ts[typescript]: validateJWT(token: string): boolean@6, hashPassword(pw: string): Promise<string>@10, class LoginService@14 | +../utils/crypto,+../db/usersWhen to call
- You know which file matters and want its contracts without reading the source
- Cost: ~50-200 tokens. Almost always cheaper than reading the file