Skip to main content
Glama
Frontmatter MCP

Frontmatter MCP

by kzmshx

Batch Update

batch_update

Update or remove Markdown frontmatter properties across multiple files matched by a glob pattern, enabling consistent metadata changes in bulk.

Instructions

Update frontmatter properties in multiple files matching glob pattern.

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": {
      "glob": "<glob>"
    },
    "name": "batch_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
setNoProperties to add or overwrite in all matched files.
globYesGlob pattern relative to base directory (e.g. "atoms/**/*.md").
unsetNoProperty names to remove from all matched files.

Output Schema

NameRequiredDescriptionDefault
warningsNo
updated_countYes
updated_filesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.7.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / glob / description
      Added value: +"Glob pattern relative to base directory (e.g. \"atoms/**/*.md\")."
    • addedInput schema / properties / set / description
      Added value: +"Properties to add or overwrite in all matched files."
    • addedInput schema / properties / unset / description
      Added value: +"Property names to remove from all matched files."
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / properties
      Added value: +{
      +  "updated_count": {
      +    "type": "integer"
      +  },
      +  "updated_files": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "warnings": {
      +    "items": {
      +      "description": "A file that was skipped or only partly used, and why.",
      +      "properties": {
      +        "error": {
      +          "type": "string"
      +        },
      +        "path": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "path",
      +        "error"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "updated_count",
      +  "updated_files"
      +]
  2. First observedv0.5.3

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutation tool. It does not say whether writes are atomic, what happens when zero files match, whether 'set' merges or fully replaces property values, or whether there is a dry-run or any recovery path. Only the mutation itself is implied, which is insufficient for a bulk write.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though the brevity contributes to the missing usage and safety detail rather than being a model of completeness.

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?

An output schema exists, so return values need not be described, and the parameters are fully covered by the schema. However, for a bulk destructive-capable mutation with no annotations, the definition omits match-failure behavior, merge semantics, and safety context, leaving real gaps for an agent deciding whether to call it.

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 glob, set, and unset are already documented in the schema, including that set adds or overwrites and unset removes names. The description adds no format, precedence, or conflict detail beyond that, so the baseline 3 applies.

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 names a specific verb and resource: 'Update frontmatter properties in multiple files matching glob pattern.' That clearly separates it from a single-file 'update' and from the batch_array_* tools that manipulate array values rather than frontmatter keys. It stops short of explicitly naming those siblings, so it does not earn a 5.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance. The agent must infer that 'batch_update' is preferred over 'update' when multiple files match a glob, and must guess how it relates to batch_array_add/remove/replace. The word 'multiple' implies batching but no condition or alternative is stated.

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