read_manual_excerpt
Read text from machine manuals to answer queries about parameters, maintenance, and procedures. Use extracted content exclusively for LLM context.
Instructions
Read text excerpt from machine manual (PDF or TXT).
Useful for providing context to LLM for questions about
specific machine parameters, maintenance procedures, etc.
**Token Warning**: Reading many pages can consume significant tokens.
Start with max_pages=10 and increase if needed.
**IMPORTANT - LLM Usage Guidelines:**
- This tool returns ONLY the text extracted from the manual
- Base your answers EXCLUSIVELY on the returned text
- DO NOT add information not present in the extracted text
- If information is not found in the text, clearly state "Not found in manual"
- DO NOT make assumptions or fill gaps with general knowledge
- If user needs more pages, suggest increasing max_pages parameter
- ALWAYS cite the manual when answering: "According to the manual..."
Args:
manual_filename: Manual filename in resources/machine_manuals/ (PDF or TXT)
max_pages: Maximum number of pages to extract (default: 10, ignored for TXT files)
ctx: MCP context
Returns:
Extracted text from manual
Example:
>>> text = read_manual_excerpt("pump_manual.pdf", max_pages=5)
>>> # LLM can now answer: "What bearings are recommended for this pump?"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| manual_filename | Yes | ||
| max_pages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |