Skip to main content
Glama

RuleCloud Guardrails

suggest_fix

Pro: minimal patch for a violation (Free plan returns upgrade prompt).

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": {
      "code": "<code>",
      "rule_id": "<rule_id>",
      "violation_message": "<violation_message>",
      "line": "<line>"
    },
    "name": "suggest_fix"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
lineYes
rule_idYes
violation_messageYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and it discloses only one behavioral trait: Free-plan callers get an upgrade prompt instead of a patch. It says nothing about whether the call is read-only, whether it modifies files, whether it requires the code to already be scanned, latency, or what the patch contains. That single plan-gating note is useful but far short of what an unannotated tool needs.

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

Conciseness3/5

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

It is a single short sentence with no filler, so it is size-appropriate and front-loaded. But the cryptic "Pro:" abbreviation and the parenthetical plan note use the limited space on commercial gating rather than on the parameter or usage information the agent actually needs.

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

Completeness2/5

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

An output schema exists, so return values need not be described. Still, a four-required-parameter tool with zero schema coverage and no annotations leaves the agent without enough to construct a correct call, and the description does not fill that gap.

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?

Schema description coverage is 0% across four required parameters (code, line, rule_id, violation_message), and the description adds no meaning to any of them. An agent must guess formats, whether line is 1-based, and how rule_id should be shaped. This is the clearest failure of the definition.

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

Purpose3/5

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

The description says the tool produces a "minimal patch for a violation", which gives a verb (suggest a fix) and an object (a patch for a rule violation). However, "Pro:" prefix and the parenthetical about the Free plan compete with the purpose statement, and it never says the output is tied to the specific code, line, and rule inputs. It is more than a tautology but less precise than a clear verb+resource statement.

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

Usage Guidelines2/5

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

No guidance on when to call this versus scan_code or generate_guardrail_rules, and no stated prerequisite such as needing a violation from a prior scan. The only conditional given is commercial (Free plan returns an upgrade prompt), which is not usage guidance for an agent deciding between tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.