Skip to main content
Glama

guard_orientation

Read-onlyIdempotent

Orient coding agents in an unfamiliar checkout before the first edit by returning a bounded file tree, language counts, and conventions files to read first.

Instructions

Bounded repository digest: tree, languages, and conventions files.

Use it before the first edit in an unfamiliar checkout, so the next read starts from CLAUDE.md, AGENTS.md, CONVENTIONS.md, README.md, or README when those files exist. It takes no parameters. The scan starts at the git worktree root when one is found, otherwise the working directory. The tree is capped (12 entries, 8 children, depth 3, 4000 files). It returns PC orientation, the capped tree, up to six language counts by extension, the conventions files found, and a Nudge. Side effects: none. It only reads the filesystem. It does not create .agent-guard/ and does not use the network.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description still adds substantive behavior: how the scan root is resolved (git worktree root, else working directory), concrete caps (12 entries, 8 children, depth 3, 4000 files), and explicit negative side effects (no `.agent-guard/` creation, no network). None of that is recoverable from the annotations.

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?

It is front-loaded with the one-line summary, then usage, then scope/limits, then return payload, then side effects — a logical order. Minor waste exists in restating the safety profile ('Side effects: none. It only reads the filesystem.') which the annotations already establish, and the cap inventory is dense but earns its place by bounding expectations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter, read-only orientation tool an agent needs to know trigger, scope, bounds, and side effects — all present. An output schema exists, so it does not need to further define `PC orientation` or the Nudge, and the return summary is a bonus rather than a gap-filler.

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?

The tool takes zero parameters and the schema confirms an empty object, so the baseline is high; the description reinforces this with 'It takes no parameters,' which is the only relevant statement to make. Nothing more could be added on this dimension.

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 opening line names the resource and its bounded nature precisely ('Bounded repository digest: tree, languages, and conventions files'), and the body enumerates exactly what the digest contains (capped tree, language counts by extension, conventions files, a Nudge). An agent can tell this apart from guard_status, guard_brief, or guard_recall without opening any schema.

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?

It gives an explicit trigger — 'before the first edit in an unfamiliar checkout' — and a concrete purpose for the next step (so the next read starts from CLAUDE.md/AGENTS.md/CONVENTIONS.md/README). The condition 'unfamiliar checkout' implicitly excludes already-familiar work, but no sibling alternative (e.g., guard_brief or guard_status) is named for the non-orientation case.

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