CogZ
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| capture_eventA | Capture a lifecycle event — called by hook scripts, not intended for direct use. session_start/prompt_submit return context packs; file_save reindexes and may return rules governing the edited file; session_end runs consolidation. |
| consolidateA | Run deferred consolidation — promote supported observations to rules, merge confirmed duplicates. Housekeeping, not a write path; dedup and contradiction checks already run on every insert. |
| create_entityA | Create a knowledge-layer entity. |
| find_orphansA | Find code entities with no incoming calls/imports/extends edges — dead-code candidates. Use during cleanup audits. Entry points like main() surface by design; test code is excluded. |
| get_callersA | Find entities that call this function — answers 'who calls X?' with resolved call edges, not text matches. Use instead of grepping for the name when you need real callers (not comments, strings, or same-named functions). |
| get_contextA | Assemble a context pack — a scoped, ranked bundle of orientation, rules, relevant code, and knowledge for a task query. Use at the start of substantial work on a topic instead of reading files broadly — narrower than a session-start pack, broader than a single search. |
| get_impactA | Transitive dependents of an entity — what breaks or needs updating when it changes (incoming calls/imports/extends up to max_depth hops), plus knowledge that references it. Use before renaming, deleting, or changing a signature. |
| get_statusA | CogZ system status — entity counts, DB stats, model availability, staleness. Use to check the index is fresh and retrieval is at full capability before relying on it. |
| list_entitiesA | List IDs and titles for all entities of a type. Use to enumerate a type or resolve an entity_id for get_callers/get_impact — returns no content; for substance use search or query_* tools. |
| query_entitiesA | Browse knowledge-layer entities of one type — 'observation' (raw findings, recency order), 'rule' (verified directives, confidence order), or 'knowledge' (curated docs). Use to enumerate what exists before writing (avoid duplicates) or to review a type — for ranked retrieval on a question use search; for code entities use list_entities or search. |
| reject_entityA | Reject a knowledge-layer entity — writes |
| searchB | Ranked search across all entities — code (functions, files, classes) plus rules, observations, and knowledge — using hybrid lexical + semantic retrieval with graph expansion. Use when you know the concept but not the exact name, or want related entities surfaced automatically. For exact identifier/text matches, grep is faster and equally precise. |
| suggest_observationsA | Mine recent session usage for observation candidates — zero-hit packs followed by edits, hot files, error→fix sequences. Use at natural stopping points to capture what the session learned; confirm salient suggestions via create_entity. |
| update_knowledgeA | Update an existing knowledge entry's content — use to correct or extend documentation when facts change. The only entity type allowing in-place edits; observations and rules are append-only. |
| verify_knowledgeA | Re-verify a knowledge entity against its referenced code — re-stamps verified_against provenance, clears drift annotations, and reactivates the entity if it was stale. Use after reading drift-flagged or stale knowledge and confirming it is still accurate — not for changing content (use update_knowledge instead). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 15 tools
Most tools target distinct operations such as status checks, search, context assembly, knowledge lifecycle management, and code-graph analysis. The main overlap is between list_entities and query_entities, and to a lesser extent search/query_entities, but the descriptions largely clarify when each should be used.
Names are consistently snake_case and predominantly follow a verb_noun pattern (get_status, list_entities, create_entity, get_callers, etc.). A few deviations are single-verb or less patterned names like search and consolidate, but the overall convention is predictable.
At 15 tools, the set is well-scoped for a knowledge/code-graph server covering status, retrieval, lifecycle management, and graph queries. Each tool maps to a meaningful operation, including hook-driven and housekeeping tools, without excessive surface area.
The server covers core knowledge lifecycle (create, update, reject, verify, consolidate), retrieval (search, query_entities, get_context), and code-graph analysis (get_callers, get_impact, find_orphans). Minor gaps exist, such as no direct get_entity-by-id for full content and no outgoing dependency/callee query, but agents can work around them via search and existing browse tools.