Skip to main content
Glama

Topos Code Evaluation

topos_evaluate_project
Read-onlyIdempotent

Evaluate a codebase by scoring every supported file on simple, composable, and secure quality dimensions. Provides a per-file and per-language rollup to identify structural debt.

Instructions

Recursively score every supported source file in a directory on the SIMPLE / COMPOSABLE / SECURE lattice, with a project rollup (read-only).

Use for a whole tree; for a single file use topos_evaluate_file, for a snippet topos_evaluate_code. Autodetects all supported languages (Python, Rust, JavaScript, TypeScript, C++) in one walk — no language argument — and skips unsupported files. Import/export-only entrypoint modules (__init__.py, index.ts, mod.rs) are exempted so trivial re-export hubs don't floor the verdict. The rollup takes the project-wide minimum per dimension (weakest file floors it); progress streams via ctx.report_progress. Returns a paginated per-file table (worst first) plus per-language rollups; page with limit / offset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYesArguments for ``topos_evaluate_project``.
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. The description adds behavioral details such as progress streaming, pagination, the rollup taking the minimum per dimension, and path resolution constraints. No contradictions.

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?

The description is a single, well-structured paragraph of 5 sentences. It is front-loaded with the primary purpose and efficiently covers all key aspects without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (multiple languages, rollup, pagination, many parameters), the description covers the main points: purpose, usage context, behavioral traits, and return format without an output schema. Slightly lacking in full detail of the output structure but sufficient.

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

Parameters3/5

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

Schema description coverage is 100%, so the description adds little beyond what the schema already provides. While the description gives context like 'weakest file floors it' for the rollup, this is more behavioral than parameter-specific. Baseline 3 is appropriate.

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 that the tool recursively scores source files on a SIMPLE/COMPOSABLE/SECURE lattice with a project rollup. It distinguishes from siblings by specifying whole-tree usage versus single file or snippet tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance is given: use for a whole tree, for single file use topos_evaluate_file, for snippet use topos_evaluate_code. Additional context includes language autodetection, skipping unsupported files, and exempting entrypoint modules.

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/Krv-Labs/topos'

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