Skip to main content
Glama

random_note

Read-onlyIdempotent

Pick a random note from an Obsidian vault or a specific folder and return its path and content, so you can resurface ideas or sample notes for review.

Instructions

Pick a random note (optionally within a folder) and return its path and content.

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

Input Schema

NameRequiredDescriptionDefault
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
folderNoLimit to this folder (vault-relative)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safety profile is covered; the description adds useful detail by revealing the return payload (path and content), which matters because there is no output schema. It does not address randomness characteristics (uniformity, whether attachments are included) or empty-result behavior, a minor tension with idempotentHint given that repeated calls yield different notes.

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?

One sentence, front-loaded with the action and scope, with zero redundant wording. Nothing could be removed without losing 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 two-parameter, zero-required read tool with full annotations and no output schema, the description covers purpose, optional scoping and return shape. Only edge-case behavior (empty vault, sampling distribution) is missing, which is minor at this complexity.

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 are already documented, including the vault default resolution. The description only echoes the optional folder scoping and says nothing about the vault parameter, so it adds no meaning beyond the schema.

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?

The description gives a specific verb ('Pick a random note') plus resource and states the returned payload (path and content), which clearly separates it from retrieval siblings like read_note or get_note_metadata. It stops short of naming any sibling explicitly, so an agent must infer that this is the sampling tool rather than a targeted read.

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?

Usage is only implied: 'optionally within a folder' signals when the folder argument should be supplied, but there is no statement of when to prefer this over read_note or how it behaves for an empty vault or folder. Adequate but leaves the selection decision to inference.

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

Deploy Server

Other Tools