Skip to main content
Glama
RCA-MCP Connector

RCA-MCP Connector

rca_guide_ingest_pdf

Parses a PDF equipment manual and ingests it into the RCA knowledge base, validating PDF format and size while enforcing a parse-quality threshold before indexing.

Instructions

Starter+ plan required. Parse a PDF equipment manual and ingest it into the RCA knowledge base. Rejects non-PDF input (checked via file signature, not just the base64 wrapper) and files over 50MB.

A quality gate runs automatically: if the parsed quality score falls below min_quality_threshold (default 0.3), ingestion is refused with suggestions -- set skip_preview_check=true to bypass it, or lower min_quality_threshold, if you've already reviewed the content via rca_guide_pdf_preview and are OK with a rougher parse.

Recommended workflow: 1) rca_guide_pdf_preview to check quality, 2) rca_guide_ingest_pdf if quality >= 0.5, 3) rca_guide_search to verify.

Plan limits: Starter up to 10 guides total, Pro up to 100, Enterprise unlimited. Max PDF size: 50MB.

Args: params (GuidePDFIngestInput): pdf_base64, equipment_id, equipment_type, name, tags, version, strategy, ocr_dpi, ocr_language, max_pages, skip_preview_check, min_quality_threshold

Returns: str: JSON with guide_id, section_count, fault_codes, part_numbers, parse_quality, strategy_used, page_count, word_count

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": {
      "params": "<params>"
    },
    "name": "rca_guide_ingest_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv4.1.15
    • addedInput schema / $defs / GuidePDFIngestInput / properties / client_id / description
      Added value: +"Client namespace ID"
    • addedInput schema / $defs / GuidePDFIngestInput / properties / token / description
      Added value: +"API key to authenticate this request"
  2. Changed1 schema field changedv4.1.14
    • addedInput schema / $defs / GuidePDFIngestInput / properties / version / description
      Added value: +"Your own version label for this guide (not validated or auto-incremented)"
  3. First observedv4.1.13

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only mark this as a non-read-only, non-destructive, non-open-world write. The description adds substantial behavior beyond that: a Starter+ plan prerequisite, per-plan guide quotas (10/100/unlimited), a 50MB hard cap, file-signature validation rather than trusting the base64 wrapper, and an automatic quality gate that refuses ingestion and returns suggestions. These are exactly the failure modes an agent needs to pre-empt.

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?

Front-loads the hardest constraint (Starter+ plan) and the core action, then escalates to the quality gate and the recommended workflow. The Args and Returns blocks are terse and the prose paragraphs each carry a distinct constraint; there is little filler.

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

Completeness4/5

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

Covers plan gating, size limits, rejection behavior, the quality gate and its escapes, and the surrounding workflow — strong for a tool that writes to a knowledge base. Minor gaps remain: the Args list is bare and the description does not say what happens when the same manual is ingested twice, despite the non-idempotent annotation. The Returns block is redundant since an output schema exists, but it is not harmful.

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?

The Args block merely lists twelve parameter names without explaining most of them, and omits token and client_id entirely. It does add real meaning for two of them — how min_quality_threshold interacts with the gate and what skip_preview_check overrides — and the prose clarifies that pdf_base64 is checked by file signature, but with low schema description coverage at the top level the description should have compensated more broadly.

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?

States a specific verb and resource ('Parse a PDF equipment manual and ingest it into the RCA knowledge base') and immediately distinguishes itself from the sibling rca_guide_ingest by bounding input to PDFs. The validation rules (signature check, 50MB cap) sharpen the scope further.

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

Usage Guidelines5/5

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

Gives an explicit three-step workflow naming the alternatives: rca_guide_pdf_preview first, then this tool if quality >= 0.5, then rca_guide_search to verify. It also names the when-not case for the skip_preview_check bypass and the threshold alternative, leaving nothing to inference.

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

Deploy Server

Other Tools