Skip to main content
Glama

Update note frontmatter

update_frontmatter

Merge keys into a note's YAML frontmatter to set status, priority, due date, area, tags, or aliases; set a key to null to remove it.

Instructions

Merge keys into a note's YAML frontmatter (set a key to null to remove it). Use for status, priority, due, area, tags, aliases.

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": {
      "ref": "<ref>",
      "updates": "<updates>"
    },
    "name": "update_frontmatter"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesNote path, title, or alias
updatesYesKeys to set; null deletes a key

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / updates / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden and does disclose the key trait an agent needs: it merges rather than overwrites, and null deletes a key. However, it says nothing about whether other existing keys are preserved on conflict, what happens if frontmatter is absent or malformed, or how an ambiguous ref is resolved.

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?

Two sentences, mutation behavior front-loaded with the null convention in parentheses, and the field list is compact and useful. No filler, though the example field list sits slightly awkwardly as a standalone sentence.

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?

For a two-parameter tool with no annotations and no output schema, the description covers the core contract but leaves open return values, conflict behavior on existing keys, and failure modes for bad refs. Adequate, not complete.

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 coverage is 100%, so both parameters are documented structurally. The description adds merge semantics but the null-deletes-a-key rule merely restates the schema's own wording for updates, so it earns the baseline rather than exceeding it.

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?

Names a specific verb and resource: merge keys into a note's YAML frontmatter. That clearly separates it from replace_note_body and from task-oriented siblings like update_task or update_frontmatter's neighbor complete_task, but it does not explicitly name any sibling as the alternative.

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 second sentence scopes the tool to particular fields (status, priority, due, area, tags, aliases), which implies usage but never states when to prefer this over edit_note, replace_note_body, or update_task, and gives no exclusions.

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