Skip to main content
Glama
KeePassXC MCP Server

KeePassXC MCP Server

by tuaris

get_database_hash

Returns the SHA-256 hash of the current KeePassXC database to detect whether it has changed.

Instructions

Get the SHA-256 hash of the current KeePassXC database. Useful for detecting if the database has changed.

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": "get_database_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; 'Get' implies a read-only, side-effect-free operation and the hash output format is named. It does not disclose whether the hash covers the on-disk file or decrypted contents, whether it is stable across sessions, or any auth/locking prerequisites — meaningful omissions for a fingerprint tool used for change detection.

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?

Two short sentences, front-loaded with what is returned and followed by the reason to call it. No redundancy or filler; every clause carries information.

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?

For a zero-parameter tool with no output schema and no annotations, the description supplies the essentials: what value comes back (a SHA-256 hash) and its purpose. It falls short only on edge semantics such as hash encoding (hex vs base64) and whether the value reflects disk state or in-memory state.

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 tool takes zero parameters, so the baseline is 4. There is nothing for the description to clarify beyond the implicit 'current database' scope, which it already states.

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?

States a specific verb (Get) and a precisely identified resource (SHA-256 hash of the current KeePassXC database), including the algorithm used. This is clearly distinguishable from siblings such as get_database_groups or get_logins, which return structured database content rather than a fingerprint.

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?

The description names a concrete use case — detecting whether the database has changed — which tells an agent to call this for polling/change-detection rather than to read data. It does not state when not to use it or name an alternative, but no sibling appears to offer an equivalent fingerprint, so the gap is minor.

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