Gem Document Processing API

    by Vidhi Bhatnagar

    1

    Extract contract numbers, GSTINs, and totals from procurement PDFs and images using a local tool on your computer.

    Free

    Security scanned

    Works with the AI Agents you already use

    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

    1. Start the Java Spring Boot helper application on your computer.
    2. Provide your AI agent with a procurement PDF or JPG/PNG image.
    3. The agent sends the document to your local processing endpoint.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Network Access
    Read Files

    Allowed Hosts

    cdn.jsdelivr.net
    Listedtoday

    What's inside

    Frequently Asked Questions

    This skill connects your AI agent to a local tool that reads procurement documents and automatically extracts the contract number, seller GSTIN, date, and total price for you.

    You need to have Java 21, Maven, and Tesseract OCR installed on your computer to run the helper application. Once the local tool is running, your AI agent can send files to it for processing.

    The skill works with text-based PDF files and common image formats like JPG, JPEG, and PNG. It cannot read text from scanned PDFs that do not already have a text layer.

    You will receive a structured data list containing the document type, contract number, date, seller GSTIN, and the grand total price. The information is returned in a format that your AI agent can easily read and summarize.

    Because the extraction uses patterns to guess the correct fields, you must always double-check the results against the original document. You should not use the extracted numbers for legal or payment decisions without a human verifying them first.

    You can simply tell your agent to process a specific procurement PDF or image using your local tool. Be sure to provide the file and confirm that your local helper application is already running on your machine.

    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.

    Free