Skip to main content
Glama

search_by_tag

Find notes in an Obsidian vault that contain specified tags, using any or all match logic to locate tagged content in frontmatter or inline.

Instructions

Find all notes that contain one or more specified tags (frontmatter or inline #tag).

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": {
      "tags": "<tags>"
    },
    "name": "search_by_tag"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsYesTags to search for (without the # prefix).
matchNo'any': at least one tag matches. 'all': all tags must match. Defaults to 'any'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description bears the full burden. It usefully discloses the matching surface (frontmatter tags and inline #tag) and that ALL matching notes are returned, but says nothing about result ordering, permissions, or whether the scan is exhaustive/large.

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?

A single front-loaded sentence with the matching criterion stated first and the tag-location clarification immediately after; no wasted wording.

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, fully documented search tool with no output schema or annotations, the description conveys purpose and matching scope adequately. Only result ordering/shape is unaddressed, 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%, including the '#' prefix convention and the any/all enum semantics, so the schema does the heavy lifting. The description only adds that multiple tags may be supplied ('one or more specified tags').

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 ('Find') and resource ('notes') plus the matching criterion, and clarifies it covers both frontmatter tags and inline #tag — which implicitly distinguishes it from search_by_frontmatter. It stops short of naming a sibling explicitly, so an agent must infer the boundary.

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?

The tag condition makes the intended use obvious, but there is no stated when-not guidance and no named alternative for users who want title/text search or frontmatter-only matching. Usage is implied rather than directed.

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