Skip to main content
Glama

Confirm Datasheet Upload

confirm_datasheet_upload
Destructive

Confirm a datasheet upload started via request_datasheet_upload. Pass the upload_token you got back from the request step. The server downloads the uploaded bytes, re-hashes to verify integrity, validates that it's a real PDF with the MPN on the first page, creates the private Document + Component records, charges the upload fee, and queues extraction.

Success response: document_id, mpn, sha256, file_size_bytes, status='pending'. Poll check_extraction_status with the MPN to wait for extraction to finish (usually 1-3 minutes).

Failure modes:

  • 'upload_not_found' — no bytes at the upload URL yet. Retry your curl upload.

  • 'sha256_mismatch' — uploaded bytes hash differs from expected_sha256. Re-compute the hash and re-request.

  • 'invalid_pdf' — bytes aren't a parseable PDF. No charge.

  • 'mpn_not_in_pdf' — MPN (or its stem) isn't on the first page. Either you uploaded the wrong file or it's a scanned image-only PDF. No charge.

  • 'token_expired' — upload token is older than 15 minutes. Restart via request_datasheet_upload.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
upload_tokenYesOpaque token returned by request_datasheet_upload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.