Skip to main content
Glama

get_health_score_tool

Calculate a 0-100 health score from code scan metrics, with deductions for duplicate code, dead code, god files, and circular dependencies, and append the result to health history.

Instructions

Compute a 0-100 health score from scan metrics and append to health_history.

Scoring deductions: duplicate ratio (-30 max), dead code ratio (-30 max), god files (-20 max), circular deps (-20 max).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Discloses its side effect (append to health_history) and details the scoring deductions. No annotations exist, so this is useful. However, it does not mention what exactly is returned or any authorization requirements.

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?

Two concise sentences, front-loaded with the primary action and followed by scoring details. No unnecessary words.

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

Completeness3/5

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

The tool lacks usage context: it does not specify prerequisites (e.g., scan_repo_tool must be run first) or when to choose this versus score_risk_tool. The output schema exists, so return values are covered there, but the input parameter is unexplained.

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

Parameters1/5

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

The only parameter repo_path is not described in either the schema or the description. The description says 'from scan metrics' but gives no guidance on what value repo_path should take.

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 states a specific verb ('Compute') and resource ('health score') plus a clear side effect ('append to health_history'). It distinguishes from siblings by specifying the scoring formula and the append behavior.

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

Usage Guidelines3/5

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

No explicit when-to-use or alternatives are mentioned. The phrase 'from scan metrics' implies it should follow scan_repo_tool, but this is not stated.

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/Codewithaiyan/reforge-mcp'

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