Skip to main content
Glama
CodeHealth MCP Server

CodeHealth MCP Server

rules_config_set_threshold

Override a repository rules threshold when a team agrees on a different limit, such as longer functions in tests.

Instructions

Override a threshold in the repository rules file.

When to use: when a team agrees on a different limit, e.g. longer functions in tests.
Limitations: names must come from rules_config_list_thresholds.
Returns: {rules_file, threshold, value, matching_content_path}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repository_path": "<repository_path>",
      "threshold_name": "<threshold_name>",
      "value": "<value>"
    },
    "name": "rules_config_set_threshold"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes
threshold_nameYes
repository_pathYes
matching_content_pathNo**/*

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden for a mutation tool. It says 'Override' but never states whether the rules file must already exist, whether the change is persisted to disk immediately, whether it is reversible, whether validation (rules_config_validate) is needed, or what permissions are required. The Returns line is redundant with the existing output schema rather than adding behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short, front-loaded with the core action, and cleanly structured with labeled 'When to use', 'Limitations', and 'Returns' sections. The Returns line is wasted text given an output schema already exists, but nothing else is padded.

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?

Purpose, triggering scenario, and a prerequisite are covered, and the return shape needn't be explained since an output schema exists. However, for a 4-parameter mutation tool with zero annotation and zero schema-description coverage, the absence of any explanation for repository_path and matching_content_path leaves meaningful gaps an agent must guess at.

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

Parameters2/5

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

Schema description coverage is 0% across 4 parameters, so the description must compensate and largely does not. It hints at threshold_name (must come from rules_config_list_thresholds) and value (a numeric limit), but repository_path and especially matching_content_path (a glob defaulting to '**/*' that scopes which files the threshold applies to) are never explained, leaving the most ambiguous parameter undocumented in both schema and description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Override a threshold in the repository rules file', which is clearly distinct from the sibling list tool and from rules_config_set_rule. It stops short of explicitly contrasting with rules_config_set_rule, so an agent must infer that boundary from the names alone.

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

Usage Guidelines4/5

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

'When to use: when a team agrees on a different limit, e.g. longer functions in tests' gives a concrete triggering scenario, and the limitations line states the prerequisite that names must come from rules_config_list_thresholds, effectively routing the agent to that sibling first. There is no explicit when-not guidance, but the required precondition covers the main misuse risk.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.