Create hierarchy
create_hierarchyCreates a hierarchy that groups the blueprints of one repository, such as every AGENTS.md in a monorepo. Identifies repositories by repository_root and returns the existing hierarchy instead of a duplicate.
Instructions
Create a hierarchy: a group that ties the blueprints of one repository together, for example every AGENTS.md of a monorepo. repository_root identifies the repository; if you already have a hierarchy with that repository_root, it is returned unchanged instead of a duplicate. Add blueprints to it with create_blueprint (hierarchy_id plus repository_path). Returns the hierarchy with its ha_ id.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"repository_root": "<repository_root>"
},
"name": "create_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name, e.g. "acme monorepo". | |
| description | No | Short description of the hierarchy. | |
| repository_root | Yes | Unique identifier of the repository, e.g. github.com/acme/monorepo. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree | No | The same blueprints nested by parent_id | |
| message | No | ||
| success | No | ||
| hierarchy | No | ||
| blueprints | No | Every blueprint in the hierarchy, flat | |
| total_blueprints | No |