Skip to main content
Glama
obsidian-pkm

obsidian-pkm

by AdrianV101

vault_activity

Query or clear a log of tool calls across sessions, including timestamps and arguments, and filter by note path, tool, session, or date to audit or reset activity history.

Instructions

Query or clear the activity log. Shows tool calls made across sessions with timestamps and arguments. Use action 'query' to retrieve entries, 'clear' to delete entries.

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

Input Schema

NameRequiredDescriptionDefault
pathNoFilter by note path (exact) or folder (every note beneath it), e.g. '01-Projects/MyApp'
toolNoFilter by tool name (e.g., 'vault_read', 'vault_write')
limitNoMax entries to return (query only, default: 50)
sinceNoFilter entries on or after this ISO timestamp (e.g., '2026-02-08')
actionNoAction to perform (default: query)query
beforeNoFilter entries before this ISO timestamp
sessionNoFilter by session ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.0.2
    • changedInput schema / properties / path / description
      Previous value: -"Filter by file path substring in arguments"New value: +"Filter by note path (exact) or folder (every note beneath it), e.g. '01-Projects/MyApp'"
  2. First observedv3.10.1

TDQS

B3.2/5.0
Behavior2/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 disclose that 'clear' deletes entries, but omits the critical question of whether clear is scoped by the same filters (path, tool, since, before, session) or wipes the entire log, whether deletion is reversible, and whether any privilege is required. For a destructive operation inside a safe-sounding 'query' tool, that ambiguity is a significant gap.

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?

Three short sentences, front-loaded with the purpose and followed by return content and action semantics. The final sentence partly duplicates the enum already in the schema, but no wording is wasted.

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

Completeness3/5

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

There is no output schema, and the description does helpfully state the shape of a returned entry (timestamps, arguments, tool names). However, for a seven-parameter tool with a destructive mode, it leaves the filter-vs-clear interaction and any result limits unaddressed.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter including the action enum is already documented in structured form. The description only restates the two action values and never explains filter behavior or how filters behave differently for clear versus query, so it adds nothing beyond the schema baseline.

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?

States a specific verb pair and resource (query or clear the activity log) plus what the log contains ('tool calls made across sessions with timestamps and arguments'). An agent can tell this is an audit/log tool rather than a content tool, though it never names how it differs from a sibling like vault_recent.

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

Usage Guidelines3/5

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

Guidance is limited to action selection: 'query' to retrieve, 'clear' to delete. There is no statement of when an agent should reach for an activity log, no prerequisites or permission notes, and no warning to prefer query over clear.

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