Skip to main content
Glama
kzmshx

Frontmatter MCP

by kzmshx

batch_array_add

Add a value to an array property in multiple files matching a glob pattern, creating the property if missing and skipping non-array properties.

Instructions

Add a value to an array property in multiple files.

Args: glob: Glob pattern relative to base directory (e.g. "atoms/**/*.md"). property: Name of the array property. value: Value to add. If value is an array, it's added as a single element. allow_duplicates: If False (default), skip files where value already exists.

Returns: Dict with updated_count, updated_files, and warnings.

Notes: - If property doesn't exist, it will be created with [value]. - If property is not an array, file is skipped with a warning. - Files are only included in updated_files if actually modified.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
globYes
valueYes
propertyYes
allow_duplicatesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations provided, so description fully bears the burden. Discloses key behaviors: property creation if missing, skip warning if property not array, allow_duplicates effect, and return structure (updated_count, updated_files, warnings). Lacks only explicit mention of idempotency or error conditions.

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?

Description is concise and well-structured with Args, Returns, Notes sections. Every sentence adds value, no redundancy. Efficiently communicates all necessary information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given tool complexity (4 params, 3 required), existence of output schema, and no annotations, the description covers all critical aspects: parameter roles, edge cases, return values, and behavioral notes. It is complete for an agent to correctly select and invoke the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but description adds meaning: glob pattern relative to base directory, property name, value added as single element even if array, allow_duplicates default false. This compensates well for the lack of schema descriptions.

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?

Description clearly states the tool adds a value to an array property in multiple files. Uses specific verb 'Add' and resource 'array property in multiple files', distinguishing it from siblings like batch_array_remove or batch_array_replace.

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?

Description provides behavior details (property creation, skip condition, deduplication) but does not explicitly compare to alternatives or state when not to use. Implicit usage guidance is present but not comprehensive.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kzmshx/frontmatter-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server