Skip to main content
Glama
FASTPROD

ContextEngine

Official
by FASTPROD

audit_verify

Verify integrity of the local audit log chain for compliance with SOC 2 CC7.2 and ISO 27001 A.12.4.1. Returns OK with record count or indicates a break index if tampered.

Instructions

Verify the integrity of the local audit log chain. Returns OK + record count, or BROKEN + break index when a record has been edited or the chain otherwise diverges. Produces evidence aligned with SOC 2 CC7.2 (change monitoring) and ISO 27001 A.12.4.1 (event logging) — evidence artifacts, not a certification (OpsContext is not itself SOC 2– or ISO 27001–certified; see docs/compliance/). The audit log lives at ~/.contextengine/audit.log and records every state-changing operation (learning save/delete/import, session save/delete, activation activate/deactivate) as a hash-chained JSONL line.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sinceNoISO date — restrict integrity report counters to records on/after this timestamp (chain still verified end-to-end)
untilNoISO date — restrict counters to records on/before this timestamp
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Without annotations, the description must disclose behavioral traits. It explains the return values (OK+count or BROKEN+index), the existence and location of the audit log file, and the compliance evidence context. It does not contradict any annotations (none present).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured: first sentence states purpose, second details return values, third adds compliance context. It is front-loaded and informative, though the compliance evidence sentence is relatively long and might be streamlined.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description adequately explains return values (OK+count, BROKEN+index) and the nature of the audit log. It does not cover error cases (e.g., log file missing), but the overall context is sufficiently complete for a verification tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers both parameters (since, until) with 100% coverage. The description adds context by explaining that these parameters restrict counters while the chain is still verified end-to-end. This goes beyond the schema's descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states that the tool verifies the integrity of the local audit log chain and returns OK or BROKEN results. It specifies the resource (audit log) and the action (verify). However, it does not explicitly distinguish this tool from its sibling 'run_audit', which may also perform audit-related functions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description lacks guidance on when to use this tool versus alternatives. It does not mention prerequisites, conditions, or scenarios where this tool is preferred over sibling tools like 'run_audit' or others.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FASTPROD/ContextEngine'

If you have feedback or need assistance with the MCP directory API, please join our Discord server