Skip to main content
Glama

API Keg — Office OOXML Template Merge & Markdown Extractor

Extract Token-Minimal Markdown from .docx, .pptx, or .xlsx

extract_office_markdown
Read-onlyIdempotent

Auto-detects .docx, .pptx, or .xlsx from OOXML structure and converts headings, lists, Word/PowerPoint tables, numerically ordered slides, speaker notes, and sparse Excel worksheets into compact GitHub-Flavored Markdown with token-savings telemetry. Pricing: $0.002 USD per Office document extraction (.docx, .pptx, or .xlsx) (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.

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": {
      "fileBase64": "<fileBase64>"
    },
    "name": "extract_office_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileBase64YesBase64-encoded .docx, .pptx, or .xlsx OOXML file to convert into token-minimal Markdown.
maxRowsPerSheetNoMaximum non-empty rows emitted per .xlsx worksheet.
includeSpeakerNotesNoInclude speaker notes from ppt/notesSlides/notesSlide*.xml when extracting .pptx presentations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, and the description adds genuinely new operational facts: a $0.002 per-document x402 charge and a free dry-run validation path. The only noise is the REST-specific '?dry_run=true' instruction, which has no corresponding MCP parameter and could confuse an agent invoking the tool directly.

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?

The conversion capability is front-loaded in the first clause, with pricing and validation details trailing. It is dense but nearly every sentence carries information, with the REST-only dry-run sentence being the weakest use of space for an MCP caller.

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?

There is no output schema, so the description carries the burden of describing the return, yet it only loosely says 'compact GitHub-Flavored Markdown with token-savings telemetry' without indicating where telemetry lives or how content is structured. Coverage of supported constructs is good, but the shape of the response an agent must parse remains underspecified.

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% and all three parameters carry descriptions, so the schema does the heavy lifting; the prose adds only the general framing of 'token-minimal' output and sparse-worksheet handling. Nothing is added about base64 encoding constraints or how maxRowsPerSheet interacts with truncation 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 concrete verb and resource: auto-detects .docx/.pptx/.xlsx from OOXML structure and converts them into compact GitHub-Flavored Markdown. An agent can immediately tell this is file-format conversion rather than template merging, though the sibling merge_office_template is never named or differentiated.

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 implied by the accepted input formats (Office OOXML documents) and the dry-run validation tip, but there is no explicit statement of when to pick this over merge_office_template or when-not to use it. The agent must infer the boundary from format names alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources