Skip to main content
Glama
KeePassXC MCP Server

KeePassXC MCP Server

by tuaris

get_totp

Retrieve the current time-based one-time password code for a KeePassXC entry using its UUID; obtain the UUID first with get_logins.

Instructions

Get the current TOTP (time-based one-time password) code for a KeePassXC entry. Requires the entry UUID (obtain via get_logins first).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "uuid": "<uuid>"
    },
    "name": "get_totp"
  }
}

Input Schema

NameRequiredDescriptionDefault
uuidYesUUID of the KeePassXC entry

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?

No annotations are supplied, so the description carries the full behavioral burden; it does communicate that this is a read of a secret value and that it depends on a prior lookup. It does not disclose failure behavior for entries lacking a TOTP secret, the validity window of the returned code, or any sensitivity/auth handling. Useful but incomplete for an unannotated secret-reading tool.

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, zero filler, with the resource and its prerequisite front-loaded so the agent sees the call ordering immediately.

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 one-parameter, no-output-schema tool the description covers purpose, input source, and what is returned, which is nearly everything an agent needs to invoke it. The remaining gap is error/edge behavior for entries with no TOTP configured, a minor omission at this 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?

Only one parameter with 100% schema coverage, so the schema already documents 'uuid'. The description adds real meaning by identifying where that UUID comes from (get_logins), which the schema does not say. That lifts it above the baseline.

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 and resource ('Get the current TOTP code for a KeePassXC entry'), naming the exact artifact returned and constraining it to one entry. This clearly separates it from siblings like get_logins or generate_password without the agent opening any schema.

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?

Gives an explicit prerequisite and routing instruction: obtain the UUID via get_logins first, which tells the agent the correct call sequence across siblings. It stops short of stating when-not to use it (e.g. entries without TOTP configured), but for a single-purpose tool this is clear context.

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