Skip to main content
Glama
Frontmatter MCP

Frontmatter MCP

by kzmshx

Query Inspect

query_inspect
Read-only

Retrieves frontmatter schemas from Markdown files matching a glob pattern to clarify metadata structure before querying or updating documents.

Instructions

Get frontmatter schema from 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": "query_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
globYesGlob pattern relative to base directory (e.g. "atoms/**/*.md").

Output Schema

NameRequiredDescriptionDefault
schemaYes
warningsNo
file_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 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\")."
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / properties
      Added value: +{
      +  "file_count": {
      +    "type": "integer"
      +  },
      +  "schema": {
      +    "additionalProperties": true,
      +    "type": "object"
      +  },
      +  "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: +[
      +  "file_count",
      +  "schema"
      +]
  2. First observedv0.5.3

TDQS

B3.2/5.0
Behavior3/5

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

The readOnlyHint=true annotation already establishes the safety profile, so the description need not restate that nothing is mutated. It adds the useful detail that output is a frontmatter schema derived across matched files, but does not say whether schemas from multiple files are merged, whether optional keys appear, or how missing frontmatter is handled.

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; the action and the selection mechanism both appear immediately. It is efficient, though extremely terse given the ambiguity around how multiple matches are aggregated.

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?

Complexity is low, there is one fully documented required parameter, an output schema covers return values, and annotations cover safety. The remaining gap is behavioral: how the schema is computed across multiple matching files is left unexplained.

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%, with the glob parameter fully documented including an example pattern, so the description need only support rather than compensate. Its phrase 'files matching glob pattern' restates the schema without adding semantics such as multi-match behavior.

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?

States a specific verb and resource: 'Get frontmatter schema from files matching glob pattern.' An agent can distinguish this read/inspect operation from mutation siblings like update or batch_update. It does not, however, differentiate itself from the sibling 'query' tool, which likely also reads files.

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?

The description offers no when-to-use guidance, no prerequisites, and no mention of the sibling 'query' tool that presumably returns file contents rather than schema. The agent must infer from the name alone that this is a pre-flight inspection step.

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