topos.mcp.tools.inspect

Detailed inspection of a code string — every metric exposed, function table, entropy breakdown.

topos.mcp.tools.inspect.topos_inspect_code(params)[source]

Full metric breakdown for a code string.

Returns the lattice evaluation, a top-N function complexity table (sorted descending; configurable via top_n_functions), and entropy details. The top-N cap prevents large files from dumping hundreds of functions and blowing out agent context.

topos.mcp.tools.inspect.render_inspection_md(r, *, verbose=True)[source]

Compact markdown for a full inspection breakdown.