# Help your agent use the context

Add short repository instructions and understand when the index is useful.

Canonical page: https://ontlgy.io/docs/agents/guidance/

After connecting MCP, give your agent a short explanation of ontlgy in the repository's `AGENTS.md`, `CLAUDE.md` or supported rules file. Merge it with existing instructions.

```text
Use ontlgy for repository structure: locate to find where a task starts,
search and symbol to inspect symbols, and impact before changing one.
Use skills_find for guidance in code you have not read, then read the
matching skill and supporting files. Code tools return locations, not
source bodies: read the cited files. Check freshness against the checkout.
Use docs_find and doc_get to discover team documents; use doc_read over
HTTP MCP for bounded live source content. The index does not contain
uncommitted changes or complete external document bodies.
```

## Good questions

- “Using ontlgy in `owner/repo`, find where webhook signatures are verified.”
- “What calls this function, and which links need verification?”
- “Is there guidance for the files I am about to edit?”
- “Find the deployment rollback runbook and read the relevant section.”

Prefer actual repository names and code vocabulary. `locate` matches names, paths, signatures and docstrings; it is not a general semantic search over source bodies.

## Keep the source authoritative

A discovered skill is guidance to inspect. An inferred graph relationship is evidence to check. A generated document card helps locate a source. The agent still needs to read applicable instructions, inspect source code or live documents, and test its changes.

Next: [Explore use cases](https://ontlgy.io/docs/guides/use-cases/).
