- Home
- Skills
- APIs & Backend
- Gem Document Processing API
Gem Document Processing API
Extract contract numbers, GSTINs, and totals from procurement PDFs and images using a local tool on your computer.
Free
What it does
- Reads contract numbers and dates from procurement PDFs and images
- Extracts seller GSTIN identifiers and grand totals automatically
- Processes files locally on your computer to keep your data private
- Converts document images into structured data you can easily read
- Uses text recognition to handle JPG and PNG photos of documents
Who it's for
Government vendors using the GeM portal
Quickly pull contract numbers and totals from your procurement documents.
Try asking: “Extract the details from this GeM contract PDF.”
Accountants processing procurement invoices
Get seller GSTINs and totals into a structured format without typing them in manually.
Try asking: “Process these JPG scans of my procurement receipts.”
Small business owners tracking government orders
Turn messy document text into organized data you can check and save.
Try asking: “Read this procurement document and tell me the grand total and date.”
Gem Document Processing API
Example session with this skill installed
I need to get the details from this procurement contract PDF. Can you process it and tell me the total and the GSTIN?
- Read your context and instructions
- Compiled the gem document processing
I will process your procurement document using the local tool. Please ensure your local helper app is running on port 8080.
I have successfully read the document. Here is the data found:
- Document Type: GeM Official Procurement Contract
- Contract Number: GEM/2023/B/3847291
- Date: 2024-05-15
- Seller GSTIN: 07AAAAA0000A1Z5
- Grand Total: 45,900.00
Please verify these values against your original PDF. The tool uses patterns to find this data, and it could occasionally pick up a different price or a different party's GSTIN from the page.
Would you like me to process another document or save these details for you?
Connects securely to your tools. The creator never sees your data.
About this skill
If you handle government procurement documents, manually copying contract numbers, GSTINs and totals can be time-consuming. This skill connects an AI agent to a locally running Java application that extracts important information from procurement documents.
How it works
- Start the Java Spring Boot helper application on your computer.
- Provide your AI agent with a procurement PDF or JPG/PNG image.
- The agent sends the document to your local processing endpoint.
- The application extracts relevant information and returns structured JSON.
Frameworks and Technologies
- Java 21
- Spring Boot
- Apache PDFBox
- Tess4J / Tesseract OCR
- REST API
- JSON
Supported Documents
- Text-based PDF documents.
- JPG images.
- PNG images.
Extracted Information
- Document type
- Contract number
- Date
- Seller GSTIN
- Grand total
Use Cases
- Extracting contract information from GeM procurement documents.
- Identifying seller GSTINs from procurement records.
- Reading totals from scanned JPG and PNG documents.
- Converting extracted information into structured JSON.
Known Limitations
- Scanned PDFs are not currently supported.
- Extraction is pattern-based and may occasionally identify incorrect values.
- Always verify extracted information against the original document.
- The local Spring Boot helper application must be running before the skill can process documents.
This skill interfaces with a Java 21 / Spring Boot 3.2.3 REST API. It uses Apache PDFBox for text-based PDF extraction and Tess4J (Tesseract) for JPG/PNG OCR. The agent communicates with the local endpoint at http://localhost:8080/api/v1/gem/process using multipart/form-data. Users must have JDK 21, Maven, and Tesseract OCR installed locally. The API returns a JSON object containing documentType, contractNumber, date, sellerGstin, and grandTotal.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed today
- Free with an Agensi account
Permissions
Allowed Hosts
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.