Skip to main content
Glama

Save repair rules

save_rules
Destructive

Save repair settings for a Pro code. Saves only validated settings, never logs, callsigns, timestamps or duplicate decisions. A returned rule_id belongs to that code. Pass rule_id to update an existing set.

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": {
      "rules": "<rules>"
    },
    "name": "save_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesYes
rule_idNo
pro_codeNoPrivate Log Mender Pro code. Authorization: Bearer also works. Never put it inside saved rules.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

The annotations already mark this as a destructive mutation, and the description adds useful context beyond that: only validated settings are saved, logs/callsigns/timestamps/duplicate decisions are excluded, and rule_id ownership/update behavior is explained. It still does not clarify whether an update overwrites or merges the existing rule set, which is significant for a destructive tool.

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 four short sentences, front-loaded with the core action, and every sentence adds relevant information without repetition or filler.

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?

For a destructive mutation with a nested rules object and no output schema, the description covers the core save/update flow and mentions the returned rule_id. However, it omits important details about update/overwrite semantics, validation failure behavior, and how the many nested rule fields affect the save.

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 only 33%, so the description needs to compensate for undocumented parameters. It explains rule_id lifecycle and general validation/exclusion behavior, but it leaves most nested 'rules' fields such as shifts, decisions, windows, inferBand, and timeShiftMinutes unexplained, so an agent cannot confidently populate the complex rules object from the description alone.

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 states a specific verb and resource: 'Save repair settings for a Pro code.' It is clearly distinguishable from repair/check/explain/status siblings, but it does not explicitly name alternatives or explain how it differs from them.

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?

It provides an implied create-vs-update rule: include 'rule_id' to update an existing set. However, it gives no explicit when-to-use guidance against sibling tools or when-not-to-use conditions.

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.