Skip to main content
Glama

rules

Read-only

Read your standing project rules and cross-project lessons, sourced from your own words or approval, before starting work. Retrieve rules for a project folder or everything that applies everywhere.

Instructions

The user's standing rules for a project and cross-project lessons, each from the user's own words or approval (agents cannot add them). Read them when starting work in a project.

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": "rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNoproject folder (absolute path) or Cowork label; omit for rules that apply everywhere

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real value beyond them: the content is user-authored and approved, and agents cannot write to it — a constraint an agent would otherwise have to discover by trial. Return shape is not described, keeping it out of the top band.

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?

Two tight sentences: the first establishes what the data is and where it comes from, the second gives the moment to read it. No filler, and the read instruction is correctly placed at the end as the call to action.

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 read-only, single-optional-parameter tool with no output schema, this covers what an agent needs: what comes back, how trustworthy it is, and when to fetch it. A note on volume or ordering of returned rules would be the only meaningful addition.

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?

The single optional `project` parameter is fully documented in the schema, including the meaning of omission (rules that apply everywhere). The description adds nothing about scoping semantics beyond that, so baseline 3 applies when schema coverage is 100%.

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?

Names a specific resource (the user's standing rules for a project plus cross-project lessons) and characterizes content precisely, including provenance ('from the user's own words or approval'). It stops short of naming the sibling it pairs with, but the aside '(agents cannot add them)' implicitly points at propose_rule as the write-side counterpart.

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 a clear trigger condition: 'Read them when starting work in a project.' That is actionable and specific to a moment in the workflow. It lacks an explicit when-not or a named alternative for adding rules, so it sits just below the top band.

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