Skip to main content
Glama

Read a tree's conventions

get_conventions
Read-onlyIdempotent

The conventions a tree's people wrote for agents that change it, in its AGENTS.md files (agents.md): those for the whole tree, then each folder's down to folder, the most general first. Where two disagree, the one nearer the page wins. Read them before propose_change, and follow them in what you write: what pages hold, what they leave out, and where things belong. OKForest's own rules come first: committing, and setting verified or generated, stay with the tree's editors, and OKForest keeps each folder's index.md listing its pages as a change adds, moves, or deletes them, so a convention to do that is already done.

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

Input Schema

NameRequiredDescriptionDefault
treeNoThe tree's slug, as list_trees gives it (not its name). Required unless the Forest has one tree.
folderNoThe folder the pages are in, e.g. `operations/vendors`; omit for the root.

Output Schema

NameRequiredDescriptionDefault
treeYesThe tree, and the commit it was read at.
conventionsYesThe AGENTS.md files covering the folder, the most general first; empty for none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the operation read-only, idempotent and non-destructive, so the description is not carrying the safety burden. It adds real value beyond them: precedence rules ("the one nearer the page wins"), and ownership constraints stating that committing and setting `verified`/`generated` stay with the tree's editors, plus the disclosure that OKForest already maintains `index.md`. It does not describe the result when a tree has no conventions at all.

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 result shape is front-loaded and every clause carries information; nothing is filler. The prose is dense and slightly tangled in the opening clause, but that does not obscure the meaning.

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?

With an output schema, rich annotations and full schema coverage, the description does not need to explain return values. It covers ordering, precedence, and editor-owned carve-outs, leaving only the empty/no-conventions case unspecified — a minor gap for a read tool of this 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%, and the description genuinely expands on `folder`: it defines it as the depth limit of the returned convention chain ("each folder's down to `folder`"), which the schema's example alone does not convey. The `tree` parameter is left to the schema, which is adequate.

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?

The description names a specific verb+resource pair (read a tree's conventions from its AGENTS.md files) and scopes the result precisely: whole-tree conventions first, then each folder's down to `folder`. It also distinguishes itself from the sibling that consumes its output by naming propose_change explicitly.

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 propose_change, and follow them in what you write" gives a concrete usage trigger, and the closing sentence clarifies which conventions the agent should not act on. It does not say what to do when no AGENTS.md exists or whether re-reading is needed after a change, so it stops short of full when/when-not coverage.

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