Skip to main content
Glama

Topos Refactor Assessment

topos_assess_worktree_change
Read-onlyIdempotent

Assess an in-progress edit against a git baseline, scoring code quality and composability from a dependency graph.

Instructions

Assess an in-place edit against a git revision — the common refactor loop.

Stateless: the baseline is read from git (git show <baseline_ref>:<path>, default HEAD) and compared to the current working-tree file. No prior call required — edit the file, then ask "did it beat HEAD?". COMPOSABLE is scored when a .gitnexus dep graph is available.

For untracked/new files or an uncommitted pre-edit baseline (which git cannot serve), use topos_begin_refactor + topos_assess_snapshot.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYesAssess an in-place edit against a git baseline.
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds that the tool is stateless, compares to git HEAD, and that COMPOSABLE is scored only when a .gitnexus dep graph is available, providing extra behavioral context beyond the annotations.

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 concise (three sentences) and front-loaded with the main purpose and stateless nature. Every sentence adds value 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?

The description covers the main concept, statelessness, and use cases. However, it does not describe the return value format, and there is no output schema. Given the tool's complexity, a brief note on output would improve completeness.

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% with all parameters described in the schema. The description does not add detail beyond the schema, so 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 the verb 'assess' and resource 'in-place edit against a git revision', and distinguishes from sibling tools by mentioning alternatives for untracked files or uncommitted baselines.

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?

Explicitly says when to use this tool (edit the file and ask 'did it beat HEAD?') and when not (untracked/new files or uncommitted baseline), with named alternatives (topos_begin_refactor + topos_assess_snapshot).

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