Skip to main content
Glama
kastelldev

Kastell

Official
by kastelldev

server_fix

Destructive

Apply safe auto-fixes to a server: audit, filter safe fixes, create backup, apply fixes, and re-audit for score delta. Preview only by default; excludes SSH, firewall, and Docker.

Instructions

Apply safe auto-fixes to a server. Runs audit, filters SAFE tier fixes, creates backup, applies fixes, and re-audits for score delta. dryRun defaults to true (preview only). SAFE_MODE forces preview. SSH/Firewall/Docker fixes are FORBIDDEN and always rejected. Use checks and category params to target specific fixes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed15 schema fields changedv2.3.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / action
      Removed value: -{
      -  "default": "apply",
      -  "description": "apply: run fixes (default), rollback: restore single fix, rollback-all: revert all applied fixes, rollback-to: revert down to specific fix-id, history: list fix operations",
      -  "enum": [
      -    "apply",
      -    "rollback",
      -    "history",
      -    "rollback-all",
      -    "rollback-to"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / category
      Removed value: -{
      -  "description": "Category name to filter fixes (e.g. 'Kernel'). AND-filtered with checks if both provided.",
      -  "type": "string"
      -}
    • removedInput schema / properties / checks
      Removed value: -{
      -  "description": "Specific check IDs to fix (e.g. ['KERN-SYNCOOKIES']). AND-filtered with category if both provided.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / diff
      Removed value: -{
      -  "default": false,
      -  "description": "Include per-fix diff preview in results",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / dryRun
      Removed value: -{
      -  "default": true,
      -  "description": "Preview fixes without applying. Defaults to true. Forced to true when KASTELL_SAFE_MODE=true.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / force
      Removed value: -{
      -  "default": false,
      -  "description": "Bypass regression gate and force baseline update",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / profile
      Removed value: -{
      -  "description": "Server profile to filter applicable checks (built-in: web-server, database, mail-server; or custom profile name)",
      -  "type": "string"
      -}
    • removedInput schema / properties / report
      Removed value: -{
      -  "default": false,
      -  "description": "Generate markdown fix report file in current directory",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / rollbackId
      Removed value: -{
      -  "description": "Fix ID to rollback (e.g. fix-2026-03-29-001) or 'last'",
      -  "type": "string"
      -}
    • removedInput schema / properties / server
      Removed value: -{
      -  "description": "Server name or IP. Auto-selected if only one server exists.",
      -  "type": "string"
      -}
    • removedInput schema / properties / target
      Removed value: -{
      -  "description": "Apply SAFE fixes until score reaches this value (1-100). Requires action:'apply'. Mutually exclusive with top.",
      -  "maximum": 100,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedInput schema / properties / top
      Removed value: -{
      -  "description": "Apply top N highest-impact SAFE fixes. Requires action:'apply'. Mutually exclusive with target.",
      -  "exclusiveMinimum": 0,
      -  "maximum": 9007199254740991,
      -  "type": "integer"
      -}
    • addedOutput schema / properties / result / anyOf
      Added value: +[
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "action": {
      +            "const": "apply",
      +            "type": "string"
      +          },
      +          "applied": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "baselineRegression": {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          "dryRun": {
      +            "const": true,
      +            "type": "boolean"
      +          },
      +          "forbiddenCount": {
      +            "type": "number"
      +          },
      +          "guardedCount": {
      +            "type": "number"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "preview": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "groups": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "checks": {
      +                      "items": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "category": {
      +                            "type": "string"
      +                          },
      +                          "id": {
      +                            "type": "string"
      +                          },
      +                          "name": {
      +                            "type": "string"
      +                          },
      +                          "severity": {
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "id",
      +                          "name",
      +                          "category",
      +                          "severity"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "type": "array"
      +                    },
      +                    "severity": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "severity",
      +                    "checks"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "groups"
      +            ],
      +            "type": "object"
      +          },
      +          "regressionWarning": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "message": {
      +                "type": "string"
      +              },
      +              "regressions": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "scoreRegressed": {
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "regressions",
      +              "scoreRegressed",
      +              "message"
      +            ],
      +            "type": "object"
      +          },
      +          "rejectedChecks": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "id": {
      +                  "type": "string"
      +                },
      +                "reason": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "reason"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "safeModeForcedDryRun": {
      +            "type": "boolean"
      +          },
      +          "scoreBefore": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "action",
      +          "dryRun",
      +          "rejectedChecks",
      +          "guardedCount",
      +          "forbiddenCount",
      +          "scoreBefore"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "action": {
      +            "const": "apply",
      +            "type": "string"
      +          },
      +          "applied": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "baselineRegression": {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          "diffSummary": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "dryRun": {
      +            "const": false,
      +            "type": "boolean"
      +          },
      +          "errors": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "regressionWarning": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "message": {
      +                "type": "string"
      +              },
      +              "regressions": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "scoreRegressed": {
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "regressions",
      +              "scoreRegressed",
      +              "message"
      +            ],
      +            "type": "object"
      +          },
      +          "rejectedChecks": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "id": {
      +                  "type": "string"
      +                },
      +                "reason": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "reason"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "reportFile": {
      +            "type": "string"
      +          },
      +          "scoreAfter": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "scoreBefore": {
      +            "type": "number"
      +          },
      +          "targetWarning": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "action",
      +          "dryRun",
      +          "applied",
      +          "errors",
      +          "rejectedChecks",
      +          "scoreBefore",
      +          "scoreAfter"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "history",
      +        "type": "string"
      +      },
      +      "entries": {
      +        "items": {
      +          "additionalProperties": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "server": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "ip": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "ip"
      +        ],
      +        "type": "object"
      +      },
      +      "totalEntries": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "server",
      +      "entries",
      +      "totalEntries"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "rollback",
      +        "type": "string"
      +      },
      +      "errors": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "fixId": {
      +        "type": "string"
      +      },
      +      "restored": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "scoreAfter": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "scoreBefore": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "fixId",
      +      "restored",
      +      "errors",
      +      "scoreBefore",
      +      "scoreAfter"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "rollback-all",
      +        "type": "string"
      +      },
      +      "errors": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "rolledBack": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "scoreAfter": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "rolledBack",
      +      "errors",
      +      "scoreAfter"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "rollback-to",
      +        "type": "string"
      +      },
      +      "errors": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "rolledBack": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "scoreAfter": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "targetFixId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "targetFixId",
      +      "rolledBack",
      +      "errors",
      +      "scoreAfter"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / result / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "apply",
      -        "type": "string"
      -      },
      -      "baselineRegression": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "dryRun": {
      -        "type": "boolean"
      -      },
      -      "forbiddenCount": {
      -        "type": "number"
      -      },
      -      "guardedCount": {
      -        "type": "number"
      -      },
      -      "preview": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "groups": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "checks": {
      -                  "items": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "category": {
      -                        "type": "string"
      -                      },
      -                      "id": {
      -                        "type": "string"
      -                      },
      -                      "name": {
      -                        "type": "string"
      -                      },
      -                      "severity": {
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "id",
      -                      "name",
      -                      "category",
      -                      "severity"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "type": "array"
      -                },
      -                "severity": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "severity",
      -                "checks"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "groups"
      -        ],
      -        "type": "object"
      -      },
      -      "regressionWarning": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "message": {
      -            "type": "string"
      -          },
      -          "regressions": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "scoreRegressed": {
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "regressions",
      -          "scoreRegressed",
      -          "message"
      -        ],
      -        "type": "object"
      -      },
      -      "rejectedChecks": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "type": "string"
      -            },
      -            "reason": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "reason"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "safeModeForcedDryRun": {
      -        "type": "boolean"
      -      },
      -      "scoreBefore": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "dryRun",
      -      "preview",
      -      "rejectedChecks",
      -      "guardedCount",
      -      "forbiddenCount",
      -      "scoreBefore"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "apply",
      -        "type": "string"
      -      },
      -      "applied": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "baselineRegression": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "diffSummary": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "dryRun": {
      -        "type": "boolean"
      -      },
      -      "errors": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "regressionWarning": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "message": {
      -            "type": "string"
      -          },
      -          "regressions": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "scoreRegressed": {
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "regressions",
      -          "scoreRegressed",
      -          "message"
      -        ],
      -        "type": "object"
      -      },
      -      "rejectedChecks": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "type": "string"
      -            },
      -            "reason": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "reason"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "reportFile": {
      -        "type": "string"
      -      },
      -      "scoreAfter": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "scoreBefore": {
      -        "type": "number"
      -      },
      -      "targetWarning": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "dryRun",
      -      "applied",
      -      "errors",
      -      "rejectedChecks",
      -      "scoreBefore",
      -      "scoreAfter"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "history",
      -        "type": "string"
      -      },
      -      "entries": {
      -        "items": {
      -          "additionalProperties": {},
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "server": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "ip": {
      -            "type": "string"
      -          },
      -          "name": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "name",
      -          "ip"
      -        ],
      -        "type": "object"
      -      },
      -      "totalEntries": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "server",
      -      "entries",
      -      "totalEntries"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "rollback",
      -        "type": "string"
      -      },
      -      "errors": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "fixId": {
      -        "type": "string"
      -      },
      -      "restored": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "scoreAfter": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "scoreBefore": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "fixId",
      -      "restored",
      -      "errors",
      -      "scoreBefore",
      -      "scoreAfter"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "rollback-all",
      -        "type": "string"
      -      },
      -      "errors": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "rolledBack": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "scoreAfter": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "rolledBack",
      -      "errors",
      -      "scoreAfter"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "rollback-to",
      -        "type": "string"
      -      },
      -      "errors": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "rolledBack": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "scoreAfter": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "targetFixId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "targetFixId",
      -      "rolledBack",
      -      "errors",
      -      "scoreAfter"
      -    ],
      -    "type": "object"
      -  }
      -]
  2. Changed1 schema field changedv2.2.4
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "result": {
      +      "oneOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "action": {
      +              "const": "apply",
      +              "type": "string"
      +            },
      +            "baselineRegression": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "dryRun": {
      +              "type": "boolean"
      +            },
      +            "forbiddenCount": {
      +              "type": "number"
      +            },
      +            "guardedCount": {
      +              "type": "number"
      +            },
      +            "preview": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "groups": {
      +                  "items": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "checks": {
      +                        "items": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "category": {
      +                              "type": "string"
      +                            },
      +                            "id": {
      +                              "type": "string"
      +                            },
      +                            "name": {
      +                              "type": "string"
      +                            },
      +                            "severity": {
      +                              "type": "string"
      +                            }
      +                          },
      +                          "required": [
      +                            "id",
      +                            "name",
      +                            "category",
      +                            "severity"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "type": "array"
      +                      },
      +                      "severity": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "severity",
      +                      "checks"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "groups"
      +              ],
      +              "type": "object"
      +            },
      +            "regressionWarning": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "message": {
      +                  "type": "string"
      +                },
      +                "regressions": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "scoreRegressed": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "required": [
      +                "regressions",
      +                "scoreRegressed",
      +                "message"
      +              ],
      +              "type": "object"
      +            },
      +            "rejectedChecks": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "id": {
      +                    "type": "string"
      +                  },
      +                  "reason": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "reason"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "safeModeForcedDryRun": {
      +              "type": "boolean"
      +            },
      +            "scoreBefore": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "action",
      +            "dryRun",
      +            "preview",
      +            "rejectedChecks",
      +            "guardedCount",
      +            "forbiddenCount",
      +            "scoreBefore"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "action": {
      +              "const": "apply",
      +              "type": "string"
      +            },
      +            "applied": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "baselineRegression": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "diffSummary": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "dryRun": {
      +              "type": "boolean"
      +            },
      +            "errors": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "regressionWarning": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "message": {
      +                  "type": "string"
      +                },
      +                "regressions": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "scoreRegressed": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "required": [
      +                "regressions",
      +                "scoreRegressed",
      +                "message"
      +              ],
      +              "type": "object"
      +            },
      +            "rejectedChecks": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "id": {
      +                    "type": "string"
      +                  },
      +                  "reason": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "reason"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "reportFile": {
      +              "type": "string"
      +            },
      +            "scoreAfter": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "scoreBefore": {
      +              "type": "number"
      +            },
      +            "targetWarning": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "action",
      +            "dryRun",
      +            "applied",
      +            "errors",
      +            "rejectedChecks",
      +            "scoreBefore",
      +            "scoreAfter"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "action": {
      +              "const": "history",
      +              "type": "string"
      +            },
      +            "entries": {
      +              "items": {
      +                "additionalProperties": {},
      +                "propertyNames": {
      +                  "type": "string"
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "server": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "ip": {
      +                  "type": "string"
      +                },
      +                "name": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "name",
      +                "ip"
      +              ],
      +              "type": "object"
      +            },
      +            "totalEntries": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "action",
      +            "server",
      +            "entries",
      +            "totalEntries"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "action": {
      +              "const": "rollback",
      +              "type": "string"
      +            },
      +            "errors": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "fixId": {
      +              "type": "string"
      +            },
      +            "restored": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "scoreAfter": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "scoreBefore": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "action",
      +            "fixId",
      +            "restored",
      +            "errors",
      +            "scoreBefore",
      +            "scoreAfter"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "action": {
      +              "const": "rollback-all",
      +              "type": "string"
      +            },
      +            "errors": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "rolledBack": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "scoreAfter": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "required": [
      +            "action",
      +            "rolledBack",
      +            "errors",
      +            "scoreAfter"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "action": {
      +              "const": "rollback-to",
      +              "type": "string"
      +            },
      +            "errors": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "rolledBack": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "scoreAfter": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "targetFixId": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "action",
      +            "targetFixId",
      +            "rolledBack",
      +            "errors",
      +            "scoreAfter"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "type": "object"
      +}
  3. Addedv1.15.1

TDQS

C2.9/5.0
Behavior5/5

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

Adds significant detail beyond annotations: runs audit, creates backup, applies fixes, re-audits, dryRun default, SAFE_MODE behavior, forbidden fixes. No contradiction with annotations.

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

Conciseness2/5

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

Relatively concise but includes inaccurate information about parameters, which harms trust. Structure is acceptable but flawed by the erroneous param mention.

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?

Covers key behavioral aspects but is incomplete due to the inconsistency about parameters. Output schema exists but description doesn't reference it.

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?

Input schema has no properties, yet description claims there are 'checks and category params'. This is misleading and contradicts the schema, adding no value.

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 clearly states the tool applies safe auto-fixes to a server and outlines the process. However, it mentions 'checks and category params' that do not exist in the input schema, causing slight confusion.

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?

Provides some usage context (dryRun default, SAFE_MODE, forbidden fixes) but also incorrectly references non-existent parameters, and lacks explicit when-not-to-use guidance or alternatives.

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

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/kastelldev/kastell'

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