Skip to main content
Glama

Topos Code Evaluation

topos_evaluate_file
Read-onlyIdempotent

Score a source file on the SIMPLE / COMPOSABLE / SECURE quality lattice. For COMPOSABLE scoring, provide or auto-detect a .gitnexus directory with a dependency graph.

Instructions

Score a file on disk on the SIMPLE / COMPOSABLE / SECURE lattice — the only evaluate tool that can reach COMPOSABLE (read-only).

Use for one file on disk. A ModuleDependencyGraph is attached when gitnexus_dir is given or auto-detected at <root>/.gitnexus, enabling COMPOSABLE (SIMPLE/SECURE always run); generate that graph first with topos_generate_depgraph (needs npm install -g gitnexus). For an in-memory snippet use topos_evaluate_code; for a whole directory use topos_evaluate_project. coupling_available is false when no graph is found, leaving any COMPOSABLE verdict unreachable. Returns an EvaluationResult.

Input Schema

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

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds context: that COMPOSABLE requires a dependency graph, that SIMPLE/SECURE always run, and that the tool returns an EvaluationResult. No contradictions found.

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?

Three sentences, no filler. First sentence states core purpose and uniqueness. Second explains usage and dependencies. Third gives alternatives and a key condition. Well front-loaded.

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?

Without an output schema, the description mentions returning an EvaluationResult but doesn't detail its structure. It covers the lattice, graph dependency, and conditions for COMPOSABLE. Could mention error cases or more return details, but overall sufficient for the complexity.

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 coverage is 100%, so baseline is 3. The description does not elaborate on individual parameters beyond the schema. It indirectly explains gitnexus_dir's role in achieving COMPOSABLE, but this is marginal added value.

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 'Score a file on disk on the SIMPLE / COMPOSABLE / SECURE lattice' and distinguishes itself as 'the only evaluate tool that can reach COMPOSABLE (read-only)'. It also explicitly names sibling alternatives: topos_evaluate_code for in-memory snippets and topos_evaluate_project for whole directories.

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?

Usage is explicitly stated: 'Use for one file on disk.' It provides prerequisites (dependency graph generated with topos_generate_depgraph, which needs npm install) and contrasts with other evaluate tools for different contexts. The condition 'coupling_available is false when no graph is found' further guides when COMPOSABLE is unreachable.

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