Skip to main content
Glama

generate_agents_md_tool

Generates an AGENTS.md file for a project, auto-detecting the root path and overwriting an existing file only when force is set.

Instructions

Generate AGENTS.md for a project. Overwrites existing if force=True.

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

Input Schema

NameRequiredDescriptionDefault
forceNoOverwrite existing AGENTS.md
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.2/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 disclose the one genuinely important behavioral fact — the tool overwrites an existing file when force=True — which is real value. It says nothing about permissions, whether generated content replaces authored sections, or what happens on failure, so a 3 reflects partial disclosure for a mutation tool.

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 short sentences, front-loaded with the core action and with no padding. The second sentence is largely a restatement of the schema's force description, which is the only minor waste.

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?

The tool is simple, has only two optional parameters, and ships an output schema, so the description needn't explain return values. However, for a tool that writes and can overwrite a file, it omits what content the generation produces and how it relates to the ensure/validate siblings, leaving a real gap.

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 description coverage is 100%, so both parameters are already documented, including the auto-detect behavior for an empty project_root. The description's only parameter-related content is the force/overwrite linkage, which restates what the schema already says, so the baseline 3 applies.

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 artifact: 'Generate AGENTS.md for a project.' The artifact name and the destructive-condition clause make the operation recognizable at a glance. It stops short of distinguishing itself from the sibling 'ensure_agents_md_tool', which likely covers a similar artifact, so it falls short of a 5.

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 no when-to-use guidance and no exclusion. With siblings named ensure_agents_md_tool and validate_agents_md_tool in the catalog, an agent gets no signal about whether to generate fresh content or ensure/validate existing content. The only conditional phrasing describes behavior, not tool selection.

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