Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as FlowState Hosted. If you published it, claim ownership there.

manage_rules

Destructive

A project's hard rules: short never/always rules from the user, shown first in every brief and not cut. add: one sentence, max 300 chars; 25 rules, 2,000 chars in total. Added or removed rules wait in the user's review queue until the user approves them (on their review page; no app can). list: active rules. remove: requires a user_request quoting the user; it waits like add; the rule is kept as removed. Preferences and lessons are recorded separately. Requires project. Returns the rule or {rules}.

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": {
      "action": "<action>",
      "project": "<project>"
    },
    "name": "manage_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleNoadd: the rule, one short sentence.
modelNoModel name if known. Unknown names are omitted.
actionYesThe operation; see the tool description.
projectYesProject name or id. Required.
rule_idNoremove: the rule's id (R<id> in the brief).
user_requestNoremove (required): the user's own words asking to remove it.
include_removedNolist: also removed rules.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / model / description
      Previous value: -"Model name if known. Never guess."New value: +"Model name if known. Unknown names are omitted."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, destructiveHint=true) by disclosing the full approval workflow: added or removed rules sit in the user's review queue until the user approves, and no app can approve on their behalf. It also states quotas (25 rules / 2,000 chars) and that removal is a soft delete ('the rule is kept as removed'), which an agent cannot infer from the destructiveHint alone.

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 resource definition before the per-action clauses, and nearly every clause carries information (limits, review queue, soft delete, return shape). The telegraphic fragment style ('add: ...; 25 rules, 2,000 chars in total') and the redundant 'Requires project.' (already a required schema field) cost it a point.

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?

Covers the async approval side effect, capacity limits, soft-delete behavior, and the return value ('the rule or {rules}') despite no output schema, which is what an agent needs for a destructive multi-action tool. It does not say what happens when the 25-rule or 2,000-char cap is hit, nor whether a failed approval leaves anything behind.

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; the description still adds real meaning on top, notably the 300-character cap on the rule text and the requirement that user_request be a quote of the user's own words. It reinforces rather than repeats the schema, though it says nothing new about model or include_removed beyond what the schema already states.

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?

Names a specific resource ('a project's hard rules') and enumerates the three operations (add/list/remove) with their exact semantics. The line 'Preferences and lessons are recorded separately' explicitly fences this tool off from the memory/preference siblings, so an agent can distinguish it without opening any schema.

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?

Gives per-action context (add = one short user rule; list = active rules; remove = only with a user_request quoting the user) and redirects adjacent content types elsewhere. It stops short of naming the specific sibling tools an agent should use instead for preferences and lessons, so routing is implied 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.

Resources