Skip to main content
Glama

read_markdown

Extract content and digest from markdown files to analyze FedRAMP documentation, compliance requirements, and security controls.

Instructions

Read a markdown file and return its contents and digest.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Implementation Reference

  • Execute function that implements the core logic of the read_markdown tool by retrieving the markdown document and returning its metadata and content.
    execute: async (input) => { const doc = getMarkdownDoc(input.path); if (!doc) { throw createError({ code: "NOT_FOUND", message: `Markdown file not indexed: ${input.path}`, }); } return { path: doc.path, sha256: doc.sha256, content: doc.content, }; },
  • Zod input schema defining the 'path' parameter for the read_markdown tool.
    const schema = z.object({ path: z.string(), });
  • Import statement for the readMarkdownTool.
    import { readMarkdownTool } from "./read_markdown.js";
  • readMarkdownTool included in the array passed to registerToolDefs for MCP server registration.
    readMarkdownTool,

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/ethanolivertroy/fedramp-docs-mcp'

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