Verdict Module

Shared grading and fix-suggestion primitives used by both the MCP scorecard and the agent-side evaluation, so the two surfaces present a consistent “grade + Top issues to fix” verdict.

toolscore.verdict.letter_grade(score)[source]

Map a [0, 1] score to an A–F letter grade.

Parameters:

score (float) – The score to grade.

Return type:

str

Returns:

"A" … "F" following GRADE_BANDS.

class toolscore.verdict.FixSuggestion(tool, problem, fix, priority)[source]

A single ranked, actionable item in a “Top issues to fix” verdict.

Variables:
  • tool – The tool the issue concerns.

  • problem – A short statement of what is wrong.

  • fix – A concrete suggestion for how to resolve it.

  • priority – Ordering key; lower is more urgent.

Parameters:
tool: str
problem: str
fix: str
priority: int
__init__(tool, problem, fix, priority)
Parameters:
Return type:

None