# Fix: llms.txt has a when-to-use or programmatic-access section

> Web-audit fix skill for the `llms-txt-when-to-use` check (Content for agents, SHOULD).

## Goal

Tell agents when to use the MCP or docs from a short llms.txt heading.

## Fix

Add a heading such as `## When to use` or `## Programmatic access` with a few lines on when
an agent should connect (for example: "Use the MCP when you need to search or score a CLI").
The audit looks for that heading; it does not grade the prose with an LLM.

## Resources

- [llmstxt.org](https://llmstxt.org/)

## Copy-paste prompt

Paste this into your coding agent. [Your audit](https://anc.dev/audit) adds what it observed for this check:

```text
Goal: Tell agents when to use the MCP or docs from a short llms.txt heading
Fix: Add a heading such as `## When to use` or `## Programmatic access` with a few lines on when an agent should connect (for example: "Use the MCP when you need to search or score a CLI"). The audit looks for that heading; it does not grade the prose with an LLM.
Skill: https://anc.dev/fix/llms-txt-when-to-use
Docs: https://llmstxt.org/
```

## Verify

Re-run the audit at [https://anc.dev/audit](https://anc.dev/audit) or call the `audit_website` MCP tool; the `llms-txt-when-to-use` check should report `pass`.
