Skip to main content
Glama

ensure_agents_md_tool

Ensures a project has an AGENTS.md file and creates it when missing, so agent instructions remain available.

Instructions

Ensure AGENTS.md exists for a project. Creates it if missing.

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

Input Schema

NameRequiredDescriptionDefault
project_rootNoProject root path (auto-detected if empty)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does usefully disclose the conditional, idempotent-looking behavior (only creates when missing, implying existing files are untouched), but says nothing about what content is written, permissions required, or whether an existing file could ever be modified. Return values are covered by the output schema.

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 short sentences, front-loaded with the action and followed by the conditional behavior. No hedging, no filler, nothing that could be cut.

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

Completeness3/5

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

For a simple one-parameter tool with an output schema, the essentials are present, but the definition omits what a generated AGENTS.md contains and how this differs from the generate/validate siblings. That ambiguity matters more than the tool's mechanical simplicity suggests.

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 project_root parameter has 100% schema description coverage including the auto-detect default, so the schema does the work. The description adds nothing about path semantics or what auto-detection resolves to, which is appropriate only as a baseline.

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 ("Ensure AGENTS.md exists") plus the conditional behavior ("Creates it if missing"). It is clear what the tool does, but it never distinguishes itself from the nearby generate_agents_md_tool or validate_agents_md_tool, which an agent must choose between.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is an implicit precondition (use when AGENTS.md is absent), but no explicit when-to-use or when-not-to-use guidance and no named alternative. With siblings like generate_agents_md_tool and validate_agents_md_tool present, the agent is left to guess which one applies.

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