Skip to main content
Glama
yomi

yomi

Official
by RikaiDev

add_style_rule

Records a writing rule the owner follows, with the sentence it came from, when it applies, and when it does not, so agents can reuse it. Scope each rule to one chat or make it global.

Instructions

Record a writing rule the owner follows, as you read it from their own messages. Every rule keeps the owner's sentence it rests on (evidence), the situation it applies to (applies_when), and the situation it does not apply to (does_not_apply_when) — a rule without its limits is how a measured statistic turns into a false instruction. Record a rule with chat_id to scope it to that conversation, without it to make it global. When a new rule contradicts an older one, pass the older rule_id in supersedes: the old rule stays in the history as superseded rather than being overwritten.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "add_style_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
originNoOptional: 'stated' when the owner said the rule outright, 'derived' when you read it from their messages (default 'derived').
chat_idNoOptional: scope the rule to one conversation. Omit for a global rule.
rule_idNoOptional: a stable id for the rule. Re-using an id updates that rule in place.
evidenceNoThe owner's own sentence the rule was read from, copied verbatim.
statementNoThe rule itself, in your own words — what the owner does, not a statistic.
confidenceNoOptional: your confidence in the rule, from 0 to 1 (default 0.5).
supersedesNoOptional: the rule_id this rule replaces. The older one is kept as superseded.
applies_whenNoOptional: the situation the rule applies to.
counter_exampleNoOptional: a case from the owner's own messages where the rule does not hold.
does_not_apply_whenNoOptional: the situation the rule does NOT apply to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.2

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses that superseding keeps the old rule in history rather than overwriting it, and that re-using a `rule_id` updates in place. It does not cover permissions, failure modes, or what the call returns, which are the remaining gaps for a mutation tool.

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?

The purpose is front-loaded in the first sentence, and the scoping and superseding rules follow in a logical order. It runs slightly long, and the aphorism about a statistic turning into a false instruction, while motivating, is the one line that does not strictly earn its place.

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 10-parameter, all-optional mutation tool with no annotations and no output schema, the description covers the purpose, the scoping decision, and the history semantics well. The main omissions are return behavior and any constraints or errors, which the absence of an output schema makes more noticeable.

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 already 100%, so the baseline is 3, but the description adds real meaning: it explains why `evidence` and the two limit fields exist (a rule without limits becomes a false instruction) and clarifies the subtle distinction between `supersedes` (history-preserving replacement) and `rule_id` (in-place update). It does not touch `origin`, `confidence`, or `counter_example`, leaving those to the schema.

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?

"Record a writing rule the owner follows, as you read it from their own messages" gives a specific verb (record) and resource (writing rule) plus the source constraint (owner's own messages). It is clearly distinct from the read-side siblings like get_style_rules or get_style_profile, but it never names them, so an agent must infer the write-vs-read split from the names alone.

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?

The description gives conditional usage rules: pass `chat_id` to scope to a conversation, omit it for global, and pass the older `rule_id` in `supersedes` when a new rule contradicts an older one. It never names an alternative tool or states when a rule should NOT be recorded, so the guidance is clear but not exhaustive.

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