MCP Tool

get_file_summary

Symbols + imports for one file.

Parameters

NameTypeRequiredDescription
filepathstringYesRelative 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/users

When 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