Skip to main content
Glama

Create rule

create_rule

Add a rule to the end of a ruleset: one narrow statement and level must (default) or should. Rules run only inside workflow runs, where the judge is given the connection's Dictionary and Features context and the run's Idea automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe Rule as one narrow statement.
levelNomust refuses a failing write; should only reports it.
requestIdNoOptional unique ID for this create. After a timeout, retry with the same requestId and arguments: the record already created is returned instead of a duplicate.
rulebookIdYesId of the Ruleset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuine behavioral context beyond that: rules execute only inside workflow runs, and the judge receives the connection's Dictionary and Features plus the run's Idea automatically. It omits auth/permission needs, but with annotations present the bar is lower.

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?

Two sentences, front-loaded with the action and placement, then the execution context. Dense but no wasted sentences; the second sentence is the only arguably tangential part and it earns its place as behavioral context.

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 non-destructive create tool with annotations covering safety, a fully documented schema, and no output schema, the description covers purpose, level semantics, and execution context adequately. Missing only return/response behavior and error cases, which are minor given the tool's simplicity.

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 schema documents all four parameters. The description nevertheless adds value by disclosing that 'must' is the default level, which the schema's enum description does not state, and by reinforcing the one-narrow-statement constraint on text.

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?

States a specific verb and resource ('Add a rule to the end of a ruleset'), and the placement detail ('to the end') plus the level concept make it distinguishable from create_rulebook/update_rule. It does not explicitly name a sibling or contrast with one, so it falls short of the top tier.

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 explains where rules apply ('Rules run only inside workflow runs') and the judge context, but gives no explicit when-to-use-this-tool-vs-alternatives guidance or prerequisites for calling create_rule itself. Usage is only implied.

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