Skip to main content
Glama

set_rules

Defines per-column anonymization rules and writes them to staging-data.rules.json in the working directory, optionally replacing the whole rules file instead of merging.

Instructions

Set per-column anonymization rules and write staging-data.rules.json in the working directory.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "columns": "<columns>"
    },
    "name": "set_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
columnsYesMap of table.column to rule
replaceNoReplace the whole rules file instead of merging

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, so mutation and repeat-safety are covered. The description adds real value by naming the output artifact and its location (staging-data.rules.json in the working directory), but it does not state whether existing rules in that file are preserved or overwritten, nor what permissions or failure conditions apply.

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?

A single sentence with zero filler, front-loading the action and then the file side effect. Nothing needs trimming and nothing is padded.

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 two-parameter tool with full schema coverage, no output schema, and annotations covering the safety profile, this states the action and the persistent side effect adequately. The remaining gap is workflow placement and overwrite behavior, which the description leaves implicit.

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 columns map, its rule enum, and the replace/merge flag are already fully documented in structured fields. The description's only contribution is the phrase "per-column," which loosely maps to the columns map; baseline 3 applies when the schema carries the parameter semantics.

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 gives a specific verb and resource ("Set per-column anonymization rules") and adds the concrete side effect of writing staging-data.rules.json, which separates it from siblings like inspect_schema and verify. It does not explicitly name a sibling or contrast behavior, so it stops short of 5.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of where this fits relative to extract, plan_subset, or verify. An agent must infer from the name alone that this should be called before extraction.

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