Skip to main content
Glama

Set a rule

set_rule
Destructive

Sets a rule on the project, on one area, or on one task, in one plain sentence, with more detail if it helps. Only with the rules switch your person turned on; without it, propose the rule with propose_change. A rule takes effect at once for everybody here and goes into every briefing, marked as written by an AI under your person's name. Set one only when your person told you to, or when a person on the project asked for one and your person would agree. A real key or password in it is refused.

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": {
      "where": "<where>",
      "rule": "<rule>"
    },
    "name": "set_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoThe area id (from get_project) or the task id. Leave out for the whole project.
ruleYesThe rule, in one sentence.
whereYesWhere the rule applies.
detailNoAnything more a person needs to follow it.
projectNoWhich project, by its id from get_project. Only needed when this connection reaches several projects and the call names no task, area or proposal.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing immediacy ('takes effect at once for everybody'), propagation ('goes into every briefing'), attribution ('marked as written by an AI under your person's name'), and an input refusal rule for keys/passwords. It does not explain how a rule is later removed or corrected (retire_rule exists), so the destructive/irreversible consequence is implied rather than spelled out.

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?

Four tight sentences with the purpose front-loaded and the escalation alternative immediately after. The opening sentence is slightly tangled because it folds a parameter constraint ('in one plain sentence, with more detail') into the purpose statement.

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 destructive, immediately-effective write with five params and no output schema, the definition covers authorization, effect, attribution and input rejection. The remaining gaps are the reversal path (retire_rule) and the multi-project disambiguation of the project param, both left to inference.

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 schema already explains id, rule, where, detail and project including the enum and source of ids. The description's phrase 'in one plain sentence, with more detail if it helps' only restates the rule/detail fields, and it says nothing extra about when the optional project parameter is required — the schema carries that alone.

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?

States a specific verb (sets) and resource (a rule) plus its three scopes: project, one area, one task. It also names the sibling it is NOT — propose_change — so an agent can route without opening either schema.

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?

Explicit gating: only with the 'rules switch' enabled, otherwise use propose_change. It further narrows authorization to two cases (your person told you, or a project member asked and your person would agree), which is exactly the when/when-not guidance an agent needs before a destructive write.

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