# knowledge_stats

Get statistics about the knowledge base, including processed files, chunk counts, and storage details.

Agent View of the PolicyLayer registry record for `knowledge_stats`. HTML page: https://policylayer.com/tools/0xcjt-templonixlite/knowledge-stats

## Facts

- Tool: `knowledge_stats`
- Server: Templonix Lite MCP Server (`0xcjt/templonixlite`) — https://policylayer.com/tools/0xcjt-templonixlite.md
- Homepage: https://github.com/0xCJT/TemplonixLite
- Risk category: Read (Low risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Allowed

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "knowledge_stats",
    "arguments": {}
  }
}
```

## Why knowledge_stats is rated Low

This tool only queries and returns statistics about an existing knowledge base—file counts, chunk counts, storage metrics. It has no side effects, creates no resources, modifies no data, and executes no external operations. It is a straightforward data retrieval operation, placing it firmly in the Read category with low risk.

From the tool's own definition: "Tool name 'knowledge_stats' and description 'Get statistics about the knowledge base' indicate retrieval of aggregate data with no modification. The verb 'Get' and focus on 'statistics' (not data mutation) confirm read-only behavior."

## Use case

AI agents call knowledge_stats to retrieve information from Templonix Lite MCP Server without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Templonix Lite MCP Server:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "knowledge_stats": {}
  }
}
```

## Other tools on Templonix Lite MCP Server (17)

- `archive_purge` — Destructive — https://policylayer.com/tools/0xcjt-templonixlite/archive-purge.md
- `calendar_delete_event` — Destructive — https://policylayer.com/tools/0xcjt-templonixlite/calendar-delete-event.md
- `knowledge_clear` — Destructive — https://policylayer.com/tools/0xcjt-templonixlite/knowledge-clear.md
- `diagram_create` — Execute — https://policylayer.com/tools/0xcjt-templonixlite/diagram-create.md
- `archive_search` — Read — https://policylayer.com/tools/0xcjt-templonixlite/archive-search.md
- `archive_search_all` — Read — https://policylayer.com/tools/0xcjt-templonixlite/archive-search-all.md
- `archive_stats` — Read — https://policylayer.com/tools/0xcjt-templonixlite/archive-stats.md
- `calendar_list_events` — Read — https://policylayer.com/tools/0xcjt-templonixlite/calendar-list-events.md
- `jina_search` — Read — https://policylayer.com/tools/0xcjt-templonixlite/jina-search.md
- `knowledge_search` — Read — https://policylayer.com/tools/0xcjt-templonixlite/knowledge-search.md
- `workflow_get` — Read — https://policylayer.com/tools/0xcjt-templonixlite/workflow-get.md
- `workflow_list` — Read — https://policylayer.com/tools/0xcjt-templonixlite/workflow-list.md
- `archive_insert` — Write — https://policylayer.com/tools/0xcjt-templonixlite/archive-insert.md
- `calendar_create_event` — Write — https://policylayer.com/tools/0xcjt-templonixlite/calendar-create-event.md
- `email_save_draft` — Write — https://policylayer.com/tools/0xcjt-templonixlite/email-save-draft.md
- `email_send` — Write — https://policylayer.com/tools/0xcjt-templonixlite/email-send.md
- `knowledge_load` — Write — https://policylayer.com/tools/0xcjt-templonixlite/knowledge-load.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=0xcjt-templonixlite · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/0xcjt-templonixlite
