Skip to main content
Glama
shahidh68

audit-ledger-mcp

record_decision

Record an AI decision to an immutable audit ledger. Stores model version, hashed inputs, structured output, and human-review flag for compliance with EU AI Act and FCA regulations.

Instructions

Record an AI decision to the audit ledger. Stores model version, hashed inputs, structured output, and human-review flag. The record is immutably sealed in S3 Object Lock for 7 years and queryable for the lifetime of the decision. Use this immediately after any AI decision that may need to be audited later — credit, hiring, fraud, customer routing, content moderation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_versionYesThe model and version that produced the decision (e.g. 'claude-sonnet-4.7', 'gpt-4o-2024-08-06'). Required for traceability and model risk audits.
raw_system_promptYesThe system prompt used. Hashed locally before transit — the raw text never leaves this MCP server.
raw_user_inputYesThe user input the model decided on (CV text, transaction, customer message, etc.). Hashed locally before transit — raw PII never leaves this MCP server.
ai_decision_outputYesThe structured decision the model produced. Stored verbatim. Should NOT contain raw PII — only the decision itself (score, classification, recommendation, reasoning summary).
human_in_loopYesWhether a human reviewed or approved this decision before it took effect. Critical for EU AI Act Article 14 (human oversight) compliance.
event_idNoOptional UUID v4 to identify this decision. Auto-generated if omitted. Useful when the calling system already has its own decision ID.
timestampNoOptional ISO 8601 timestamp of when the decision was made. Defaults to the current time. Use this only if recording a backfilled decision.
Behavior5/5

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

The description reveals key behaviors: the record is immutably sealed in S3 Object Lock for 7 years, queryable for lifetime, and that raw inputs are hashed locally before transit (the raw text never leaves the server). It also warns that ai_decision_output should not contain raw PII.

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

Conciseness5/5

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

Three concise sentences cover purpose, key features, and usage guidance. No wasted words; every sentence adds value. Front-loaded with the main action.

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 annotations and no output schema, the description provides substantial context: data handling, retention, compliance, and typical use cases. It does not explicitly describe the return value, but the focus on audit trail and immutability implies a confirmation or ID. Overall, nearly complete for the tool's complexity.

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?

Schema already covers all parameters with detailed descriptions. The main description adds context like 'hashed locally' for raw inputs and mentions EU AI Act relevance for human_in_loop, which goes beyond the schema. Baseline 3 with extra value gives a 4.

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

Purpose5/5

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

The description clearly states the verb (Record) and resource (AI decision to the audit ledger), and it lists what is stored. It also implicitly distinguishes from siblings list_decisions and verify_decision by focusing on writing rather than reading or verifying.

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

Usage Guidelines4/5

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

Explicitly says when to use: immediately after any AI decision that may need auditing (credit, hiring, etc.). Does not mention when not to use or alternatives, but the sibling tools are for different purposes, so guidance is clear enough.

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/shahidh68/audit-ledger-mcp'

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