Skip to main content
Glama

add_tenant_rule

Destructive

Append ONE rule to the tenant rule book, which every agent reads at start. Use it when a human says a rule applies to all bots ("jeder Bot soll …", "Polizei: ab jetzt immer …") — instead of copying it into each agent's memory. Required: rule (one sentence or short paragraph), requested_by (who asked, e.g. "Max Mustermann"). The line is dated and attributed; an identical rule is not added twice. Changing or deleting existing rules is done by an admin in the app (see get_tenant_rules link).

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": {
      "rule": "<rule>",
      "requested_by": "<requested_by>"
    },
    "name": "add_tenant_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleYesThe rule text, one sentence or short paragraph, read by every agent
requested_byYesName of the person who asked for the rule

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / requested_by / description
      Added value: +"Name of the person who asked for the rule"
    • addedInput schema / properties / rule / description
      Added value: +"The rule text, one sentence or short paragraph, read by every agent"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds real behavioral context beyond the annotations: the line is dated and attributed, duplicate rules are suppressed, and the write propagates to every agent — useful blast-radius information for a destructiveHint=true tool. Minor tension: 'an identical rule is not added twice' reads as de-duplication, which sits awkwardly against idempotentHint=false, so an agent may be unsure whether retrying is safe.

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?

Front-loaded with the action and its scope, then trigger, then constraints, then the escalation path — a sensible order with no filler sentences. It is dense in places (parenthetical German quotes plus a cross-reference in one paragraph), but every element carries information.

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?

For a two-parameter mutation tool with no output schema, the description covers trigger, cardinality, duplicate handling, attribution, and where out-of-scope edits go. An agent has everything needed to decide to call it and what to pass.

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 coverage is 100%, so both parameters are already documented in structured form. The description restates them ('rule (one sentence or short paragraph)', 'requested_by (who asked, e.g. "Max Mustermann")') without adding format, length, or validation guidance beyond the schema, so the baseline 3 applies.

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?

Opens with a specific verb and resource plus a cardinality constraint: 'Append ONE rule to the tenant rule book.' It also states the resource's reach ('which every agent reads at start'), which distinguishes it from per-agent memory writes and from the read-side sibling get_tenant_rules.

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

Usage Guidelines5/5

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

Gives an explicit trigger with concrete human phrasing ('jeder Bot soll …', 'Polizei: ab jetzt immer …'), names the wrong alternative it replaces ('instead of copying it into each agent's memory'), and routes out-of-scope operations (changing/deleting) to an admin via get_tenant_rules. When-to-use, when-not-to-use, and the alternative are all present.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.