Skip to main content
Glama
fredyee

HallucC MCP Server

check_cua_actions

Submit computer-use agent action sequences to receive L0-L3 risk rulings, matched rules, and outcome counts for each step. Deterministic rules enable pre/post execution safety checks without LLM usage.

Instructions

Computer-Use Agent 动作风险分级。提交动作轨迹 → 逐步返回 L0(放行)/L1(放行+记录)/L2(需确认)/L3(阻断) 裁决、matched_rules、outcome,及 L0-L3 汇总计数。纯规则判定,不调 LLM、不耗额度。用于在 agent 执行前/后做安全自检。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionsYes待分级的动作序列(1~500 条)
session_idNo给了则把分级结果写入审计表,可在 /cua/audit 回放

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and adds meaningful behavioral context: it is rule-based, does not call an LLM, and does not consume quota. It also discloses the return value shape. The optional audit side effect when session_id is supplied is only mentioned in the schema, not the description, but that is a minor gap because the schema documents it.

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?

The description is compact and front-loaded: it states the purpose, the output, the key behavioral trait, and the intended usage context in three dense sentences. There is no filler or redundancy.

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?

The description enumerates the return payload (L0-L3 verdicts, matched_rules, outcome, counts), which compensates for the lack of an output schema. Combined with a fully documented input schema, an agent has enough to call the tool correctly. Slightly more top-level transparency about the session_id audit write would round it out, but that is captured in the schema.

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%, and the input schema already documents all parameters and aliases in detail. The description adds little parameter-level meaning beyond 'submit action trajectory', so the baseline of 3 is appropriate.

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

Purpose4/5

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

The description states a specific verb and resource: risk-grading CUA action trajectories and returning L0-L3 verdicts, matched_rules, outcome, and counts. It is not a tautology and clearly communicates the tool's function, though it does not explicitly differentiate from sibling tools like check_safety or verify_agent.

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 gives a clear applicability context: '用于在 agent 执行前/后做安全自检' (used for safety self-check before/after agent execution). It also notes that the tool is pure rule-based and consumes no LLM quota, which helps an agent decide when to invoke it. However, it does not mention exclusions or explicitly name alternatives among the sibling tools.

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