Browse documentation
← MCP reference

MCP tool

tests_accept

Accept a finding from the newest matching saved full check with a reason, recorded as the agent's. Acceptance reruns nothing; the next step names tests_check. On Trusted paths with the passkey layer off, an unlisted agent counts and is flagged. Guarded and Manual paths require a target-listed agent key or a person. When the layer is on or unknown, asks the person to confirm in the CLI.

CLI 0.2.11

Examples

Accept a saved finding without rerunning the check, record the agent's reason, then follow the tests_check next step.

{
  "arguments": {
    "base": "origin/main",
    "base_commit": "HEAD~1",
    "head": "HEAD",
    "id": "0123456789abcdef",
    "reason": "Covered by the integration suite."
  },
  "name": "tests_accept"
}

Input schema

baseoptional · string

Target branch used for the saved check.

base_commitoptional · string

Comparison commit used by the saved check.

headoptional · string

Commit used for the saved check; defaults to HEAD.

idrequired · string

The finding ID from the saved check.

isolatedoptional · boolean

Compatibility option; acceptance uses the saved result and reruns nothing.

reasonrequired · string

Why this finding is acceptable.

JSON Schema
{
  "additionalProperties": false,
  "examples": [
    {
      "base": "origin/main",
      "base_commit": "HEAD~1",
      "head": "HEAD",
      "id": "0123456789abcdef",
      "reason": "Covered by the integration suite."
    }
  ],
  "properties": {
    "base": {
      "description": "Target branch used for the saved check.",
      "type": "string"
    },
    "base_commit": {
      "description": "Comparison commit used by the saved check.",
      "type": "string"
    },
    "head": {
      "description": "Commit used for the saved check; defaults to HEAD.",
      "type": "string"
    },
    "id": {
      "description": "The finding ID from the saved check.",
      "type": "string"
    },
    "isolated": {
      "description": "Compatibility option; acceptance uses the saved result and reruns nothing.",
      "type": "boolean"
    },
    "reason": {
      "description": "Why this finding is acceptable.",
      "type": "string"
    }
  },
  "required": [
    "id",
    "reason"
  ],
  "type": "object"
}

Related command: cscale tests.