Skip to main content
Glama

train_compliance

Scan training data for PII, sensitive fields, and proprietary terms. Generate severity-based reports, block severe findings from training submission, and mark data provenance.

Instructions

训练数据合规扫描——PII(姓名/手机号/身份证)+ 敏感字段(健康/财务)+ 企业专有名词三类风险项(复用 v1.4.4 redactor 红名单检测);报告(发现项+严重度+处置建议)写训练集版本;严重级发现阻断训练提交;数据来源标记(企业提供/合成/公开语料)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNo操作(缺省 scan):scan 扫描+写版本 / gate 只断言 / mark 来源标记scan
versionYes🔴 数据集版本(versions.jsonl 的 version)
dataset_idYes🔴 数据集标识
provenanceNo数据来源标记(mark 必填;scan 可选同扫同标)
enterprise_idYes🔴 企业标识(隔离分区依赖)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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. It discloses key side effects: the report is written to the dataset version ('报告写训练集版本') and severe findings block training submission ('严重级发现阻断训练提交'). It also explains the action variants' behavior (scan writes, gate asserts, mark sets provenance). It does not mention permissions, reversibility, or rate limits, but the essential behavioral traits are covered.

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 description is a single dense sentence with semicolon-separated clauses, front-loaded with the primary purpose ('训练数据合规扫描'). It packs the three risk categories, detection method, report behavior, blocking rule, and provenance marking without wasted words. Efficient and structured.

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 5 parameters, 2 enums, and no output schema, the description covers the main behaviors: what is scanned, how detection works, what the report contains, the blocking condition, and the provenance action. It does not detail error handling or return format, but those are not required given the absence of an output schema and the complexity level. The description is sufficient for an agent to invoke it correctly.

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 the baseline is 3. The description adds some context by linking actions to behaviors (e.g., 'scan 扫描+写版本' vs 'gate 只断言') and clarifying that provenance is used for source marking. However, this mostly repeats what the schema already states (e.g., 'mark 必填'), so the added value is marginal.

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 description clearly states the tool's purpose: '训练数据合规扫描' (training data compliance scan) and enumerates three risk categories (PII, sensitive fields, enterprise terms) with a specific detection method (redactor whitelist). It is a distinct operation compared to siblings like train_dryrun or train_doctor, which focus on other aspects of training.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage (scan before training submission) but does not explicitly state when to prefer this over alternatives or when not to use it. It explains the three actions (scan/gate/mark) in the description but does not provide conditions like 'use gate for read-only assertion' – that is left to the schema's enum descriptions. No alternative tools are named or excluded.

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