Skip to main content
Glama
Frontmatter MCP

Frontmatter MCP

by kzmshx

Update

update

Modify or remove frontmatter properties in a single Markdown file while preserving unchanged keys, comments, quoting, list style, and body content.

Instructions

Update frontmatter properties in a single file.

Only the changed keys are rewritten; other keys, comments, quoting, list style, and the body stay as they are.

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": {
      "path": "<path>"
    },
    "name": "update"
  }
}

Input Schema

NameRequiredDescriptionDefault
setNoProperties to add or overwrite. Values are applied as-is (null becomes YAML null, empty string becomes empty value).
pathYesFile path relative to base directory.
unsetNoProperty names to remove completely.

Output Schema

NameRequiredDescriptionDefault
pathYes
updatedYes
frontmatterYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.7.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / path / description
      Added value: +"File path relative to base directory."
    • addedInput schema / properties / set / description
      Added value: +"Properties to add or overwrite. Values are applied as-is (null becomes\nYAML null, empty string becomes empty value)."
    • addedInput schema / properties / unset / description
      Added value: +"Property names to remove completely."
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / properties
      Added value: +{
      +  "frontmatter": {
      +    "additionalProperties": true,
      +    "type": "object"
      +  },
      +  "path": {
      +    "type": "string"
      +  },
      +  "updated": {
      +    "type": "boolean"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "path",
      +  "frontmatter",
      +  "updated"
      +]
  2. First observedv0.5.3

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does disclose the key non-obvious trait: only changed keys are rewritten, preserving other keys, comments, quoting, list style, and the body. It omits error behavior, whether a missing file is created, and atomicity expectations, so it is strong but not complete.

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 short sentences, correctly front-loaded with the purpose followed by the preservation guarantee. Every clause earns its place and nothing is repeated from the schema.

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 three-parameter tool with an output schema and fully described parameters, the definition covers purpose and the critical formatting-preservation behavior. Remaining gaps—failure modes and file-creation behavior—are modest for a tool this simple.

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 set/unset/path are already fully documented in the schema. The description's statement about only changed keys being rewritten reinforces set/unset semantics but adds no syntax or format detail beyond the schema, making 3 the correct baseline.

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?

"Update frontmatter properties in a single file" gives a specific verb, resource (frontmatter properties), and scope (single file), which implicitly contrasts with the batch_* siblings. It stops short of naming an alternative, but an agent can tell what this does without opening the schema.

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: the "single file" scope suggests batch_update handles multiple files, but there is no explicit when-to-use, when-not-to-use, or stated alternative. No prerequisites (file existence, valid YAML) are mentioned.

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