cgis_init_ontology
Generate a starter patterns.yaml from a measured code graph, proposing domain labels and tolerance baselines. Review the YAML, save it, then use it for drift detection.
Instructions
Propose a starter patterns.yaml from the measured graph (read-only).
Returns the YAML text — save it yourself (e.g. to patterns.yaml), review
the proposed labels, then run ``cgis_drift`` with it. Tolerances are the
measured scores plus ``margin``: a baseline to ratchet down, not a verdict.
No files are written; the caller decides where to persist the output.
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": "cgis_init_ontology"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Fixed FQN segment depth for domain discovery (positive); omit to pick it automatically. | |
| margin | No | Headroom added to each measured score to form the proposed tolerance. | |
| db_path | No | SQLite graph built by cgis_ingest. A relative path resolves against the MCP server's working directory, not the agent's — prefer an absolute path. | graph.db |
| min_nodes | No | Domains with fewer nodes stay hygiene-only instead of getting a label. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |