Skip to main content
Glama

rules

Retrieve a vault's agent guidance—folders, frontmatter contract, write timing, and session-start behavior—before the first write to that vault.

Instructions

CHEAP — a vault's own rules for agents: its folders, the frontmatter contract, when and how to write there, and what session start shows from it. Read them before the first write to a vault reached through vault; for the main vault they are the server's instructions.

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
vaultNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.2

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It reveals the content shape and flags a cost trait ('CHEAP'), which is genuinely useful behavioral context. It never states plainly that the call is read-only with no side effects, and says nothing about how large the returned rules might be for a vault.

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 cost signal and the resource definition before the actionable instruction. The leading 'CHEAP —' fragment is slightly cryptic in isolation, but nothing is wasted and the call-to-action lands last.

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?

An output schema exists, so return values need no prose, and there is one optional parameter. The description covers what the tool yields and when to call it, which is close to sufficient. The remaining gap is identifier semantics for the `vault` argument.

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 coverage is 0% for the single `vault` parameter, so the description has to compensate. It does so implicitly: 'a vault reached through `vault`' and the main-vault contrast together imply that an omitted value resolves to the primary vault. It still doesn't describe accepted identifier forms (name, path, ID) for non-default vaults.

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 and enumerates its contents: a vault's folders, the frontmatter contract, write guidance, and what session start shows. That is far more concrete than the bare name 'rules'. It stops short of explicitly contrasting with siblings like `context`, `init`, or `lint`, so sibling differentiation is only partial.

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?

'Read them before the first write to a vault reached through `vault`` gives an explicit triggering condition, which is the key moment an agent needs this tool. It also clarifies the main-vault case (server instructions), pre-empting a redundant call. No explicit when-not for other situations, so a 4 rather than 5.

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