Skip to main content
Glama

risk_evaluate_action

Evaluate proposed project mutations and return risk level, score, gate, and checklist to block unsafe autonomous agent actions before they execute.

Instructions

Evaluate action risk before an autonomous agent mutates the project.

Args: action: Natural-language action description target: Actor, asset, subsystem, file, or feature target operation_type: inspect/read/create/edit/delete/compile/save/build/etc. asset_paths: Optional affected Unreal asset paths destructive: True for deletion, overwrite, reset, or irreversible edits requires_compile: True when Blueprint/C++ compile or VM recompile is needed affects_runtime: True when gameplay behavior may change touches_source: True when C++/Python/plugin source files are involved estimated_scope: single_asset, multi_asset, folder, level, or project_wide mitigations: Existing safeguards such as checkpoint, journal, dry-run, tests

Returns: JSON string with risk level, score, recommended gate, reasons, and checklist.

KB: see knowledge_base/32_AGENT_PLAYABLE_SLICE_RECIPE.md#overview Example: risk_evaluate_action(action="Example")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
targetNo
asset_pathsNo
destructiveNo
mitigationsNo
operation_typeNounknown
touches_sourceNo
affects_runtimeNo
estimated_scopeNosingle_asset
requires_compileNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It explains that the tool evaluates risk and returns a JSON string with risk level, score, recommended gate, reasons, and checklist. The 'before...mutates' phrasing strongly implies this tool itself is non-mutating, though it is not stated explicitly.

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?

The purpose is front-loaded and the body is organized into clear sections: Args, Returns, KB, and Example. The parameter list is necessary given the lack of schema descriptions, but the example using 'action="Example"' is too generic to add real value and the KB link is not expanded.

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?

Despite high complexity with ten parameters and no schema description coverage, the description fully documents the inputs, the output structure, and the intended usage moment. It also provides a KB pointer for deeper context, making it sufficiently complete for an agent to select and invoke the tool correctly.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate. It does so thoroughly by defining every one of the ten parameters, including meaningful values for operation_type and estimated_scope, and clarifying the boolean flags such as destructive, requires_compile, affects_runtime, and touches_source.

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?

The first sentence is a specific and unambiguous statement of purpose: 'Evaluate action risk before an autonomous agent mutates the project.' This clearly identifies the tool's verb, resource, and timing, and distinguishes it from the many mutating sibling tools in the list.

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 description explicitly states when to use the tool: before an autonomous agent mutates the project. It does not name alternatives or provide exclusions, but the usage context is clear enough for an agent to select this tool over direct mutation or validation siblings.

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

Deploy Server

Other Tools