Skip to main content
Glama

assess_risk

Rates a command's risk as safe, low, medium, high, or critical before you run it, and names the matching rule. Pattern-matches command text only; the caller enforces the result.

Instructions

Rate a command safe/low/medium/high/critical BEFORE running it, and name the rule that matched. This is a pattern match on the command text — suvadu does not execute anything, inspect the filesystem, or sandbox the command; the caller still has to enforce the result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandNoThe command to assess (e.g. 'rm -rf /tmp', 'git push --force')
commandsNoMultiple commands to assess at once

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and does so well: it discloses that this is a pure text pattern match, that suvadu does not execute, inspect the filesystem, or sandbox, and that enforcement is the caller's responsibility. This negative-space disclosure precisely prevents the dangerous misreading of the 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?

Two sentences, both earning their place: the first front-loads purpose, scale, and timing; the second preempts the most likely misconception about execution and side effects. No padding.

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

Completeness4/5

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

For a tool with no output schema and no annotations, it adequately conveys both the input contract and the shape of the result (a rating plus the matched rule). It could say a bit more about the return structure or batch results, but nothing critical 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%, documenting both 'command' and 'commands' with examples, so the baseline of 3 applies. The description adds nothing about how single vs batch assessment differs, so it neither helps nor hurts beyond the schema.

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 (Rate) plus resource (a command), the output scale (safe/low/medium/high/critical), the timing (BEFORE running it), and a secondary output (the matched rule). An agent immediately understands the function without opening the schema.

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?

The 'BEFORE running it' clause gives clear timing guidance that tells the agent where this fits in a workflow. However, it never names an alternative or an explicit when-not condition, and no sibling tool covers risk scoring to disambiguate against.

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