Skip to main content
Glama
cygnusyang

knowledgebase-mcp

by cygnusyang

Get note metadata

get_metadata
Read-only

Retrieve a note's tags, frontmatter, and file stats without its body. Use it when you need only classification details and want to avoid the higher cost of a full note read.

Instructions

Get a note's tags, frontmatter, and file stats without its body. Cheaper than read_note when you only need how a note is classified.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesVault-relative note path, e.g. 'Projects/Roadmap.md'. Extension optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds meaningful behavioral context: the call excludes the note body and is cheaper than read_note, which goes beyond the annotations.

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 concise sentences front-load the primary function and then add the cost/use-case distinction. Every sentence earns its place with no filler.

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?

Given one simple parameter, read-only annotations, and no output schema, the description adequately summarizes what is returned (tags, frontmatter, stats) and what is not (body). The only minor gap is the vagueness of 'file stats', but this does not impede correct invocation.

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%, and the path parameter is already well documented with an example and extension-optional note. The description adds no additional parameter semantics, so the baseline of 3 applies.

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?

The description uses a specific verb and resource ('Get a note's tags, frontmatter, and file stats') and explicitly contrasts itself with read_note, making its scope clear. An agent can immediately tell this from the sibling tools.

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

Usage Guidelines5/5

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

It names the alternative read_note and gives the selection condition: use this when you only need how a note is classified. This directly tells the agent when to prefer this tool over a body-reading alternative.

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