Skip to main content
Glama

analyze_trends

Analyze note trends and patterns across a set number of days, optionally filtered by keyword, to reveal changes and recurring themes in your Obsidian vault.

Instructions

Analyze trends and patterns in notes over time

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

Input Schema

NameRequiredDescriptionDefault
daysNoNumber of days to analyze
keywordNoOptional: Focus analysis on specific keyword

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden. It does not state that the operation is read-only, whether it scans all notes or a subset, what the analysis returns, or any cost/latency considerations for large note sets.

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?

A single short sentence with no wasted wording and the scope ('over time') front-loaded. It is efficient, though the brevity is partly because so little is specified.

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

Completeness2/5

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

The tool is simple (2 optional params), but with no annotations and no output schema, the description should say something about what the analysis produces and what 'trends' concretely means. As written, an agent cannot predict the return shape or interpret results.

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 both parameters (days, keyword) are already fully documented in the schema. The description adds no syntax, default behavior, or interaction detail beyond what the schema provides; baseline 3 applies.

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

Purpose3/5

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

The description names a verb (analyze) and a resource area (trends and patterns in notes over time), which is more than a tautology. However, 'trends and patterns' is left undefined — the agent cannot tell whether this means note counts, keyword frequency, sentiment, or something else — and nothing distinguishes it from siblings like aggregate_tasks_by_period.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. The agent must guess when trend analysis is preferable to aggregate_tasks_by_period or generate_task_summary.

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