Skip to main content
Glama

Save a project's word rules

save_word_rules
DestructiveIdempotent

Replaces a text project's word rules. Each rule has a term (whole word, case insensitive) and a mode: block (flag without checking), bypass (pass without checking), remove (strip the word before checking) or substitute (swap in replacement before checking). Returns the previous rules so they can be put back. Live within about 5 minutes. Up to 500 rules. Needs owner, admin or editor access.

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": {
      "project_id": "<project_id>",
      "word_rules": "<word_rules>"
    },
    "name": "save_word_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project's id, from list_projects.
word_rulesYesThe full new set of rules. An empty list removes them all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description corroborates rather than contradicts them by calling this a replacement. Beyond annotations it adds genuinely useful facts: the previous rules are returned so they can be restored, changes go live in about 5 minutes, there is a 500-rule cap, and owner/admin/editor access is required. It does not say what happens to in-flight messages during replacement, which keeps it below a 5.

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?

Five short sentences, front-loaded with the replacement semantics and then permissions, limits and propagation. No filler or restatement of the title; each clause carries distinct information an agent needs before calling.

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?

With only two required parameters, no output schema and high schema coverage, the remaining burden is behavioral: what gets destroyed, how to undo it, latency, size cap and required role are all stated. An agent has everything needed to call this correctly and warn about its destructive nature.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description goes beyond it by defining what is not in the schema: terms match as whole words case-insensitively, and each mode's behavior (block = flag without checking, bypass = pass without checking, remove = strip before checking, substitute = swap the replacement in before checking). It omits clarifying that replacement applies only to substitute mode, but the schema covers that.

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?

"Replaces a text project's word rules" gives a specific verb (replaces) and resource, and the word 'Replaces' plus 'the full new set of rules' in the schema makes clear this is a wholesale overwrite rather than an append or a test. It stops short of naming test_word_rules as the non-mutating alternative, so the differentiation is implied rather than stated.

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 the use case (write the complete rule set, with the previous set returned for rollback) but never states when to use this versus test_word_rules, nor any exclusion such as 'run test_word_rules first to validate before saving'. Guidance is inferable from the wording rather than explicit.

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.