Skip to main content
Glama

Record a triage decision

learn_triage

Record whether a scan finding is a real issue or a false positive so Skylos can learn from your triage decisions and improve future suggestions. Writes the choice to project state.

Instructions

Record whether a finding was accepted or dismissed so get_triage_suggestions can learn from it.

Writes the decision to the project's local Skylos state.

Requires SKYLOS_API_KEY: this tool returns an authentication error unless the MCP server is started with SKYLOS_API_KEY set. Without a key, analyze works (5 calls/day) and the local map tools (change_map and the graph_* tools) work with no limit. The local CLI needs no key: skylos verify <file> and skylos agent install-hooks.

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": {
      "path": "<path>",
      "action_id": "<action_id>",
      "action": "<action>"
    },
    "name": "learn_triage"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesProject directory. A relative path resolves against the MCP server's working directory.
actionYes"accept" (real issue) or "dismiss" (false positive).
action_idYesThe finding's `fingerprint` from a scan result.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv4.49.0
    • addedInput schema / properties / action / description
      Added value: +"\"accept\" (real issue) or \"dismiss\" (false positive)."
    • addedInput schema / properties / action_id / description
      Added value: +"The finding's `fingerprint` from a scan result."
    • addedInput schema / properties / path / description
      Added value: +"Project directory. A relative path resolves against the MCP server's working directory."
  2. Addedv4.10.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false) by naming the write target (the project's local Skylos state) and disclosing a hard prerequisite: an authentication error unless the server runs with SKYLOS_API_KEY, with a list of key-free alternatives. That precondition is exactly the kind of failure the agent must anticipate before calling.

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?

Front-loads the core action in one sentence, then the write location, then the auth caveat. The SKYLOS_API_KEY paragraph is the longest part but carries real blocking information; a small amount of ancillary detail about CLI commands is only marginally relevant to invoking this tool.

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

Completeness5/5

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

With an output schema present, return values need no explanation, and the description supplies what the structured fields do not: the write target, the feedback loop to a sibling, and the authentication precondition. Nothing an agent needs in order to call this correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so path, action, and action_id are already documented in the schema, including the accept/dismiss meaning and fingerprint source. The description restates accept/dismiss in prose but adds no new format or constraint detail beyond that baseline.

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

Purpose5/5

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

States a specific verb and resource ("Record whether a finding was accepted or dismissed") plus a stated purpose for the write (feeding get_triage_suggestions) and names the consumer sibling, so the agent can distinguish it from a read-only suggestion tool.

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?

Clearly frames the when: use it to record a triage decision so suggestions improve. It also implicitly separates this from key-free paths by listing what still works without SKYLOS_API_KEY, but it never gives an explicit "do not use this for X" exclusion.

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