Skip to main content
Glama

Confirm Datasheet Upload

confirm_datasheet_upload
Destructive

Confirms a datasheet upload by validating its upload_token, checking the PDF and MPN, adding it to your private library, and queuing extraction.

Instructions

Costs 10¢ per call. That is the upload fee, charged only when the file passes its checks. Confirms an upload started with request_datasheet_upload: pass its upload_token. The server re-hashes the uploaded bytes, checks it is a PDF with the MPN on the first page, adds it to your organisation's private library and queues extraction. Success returns document_id, mpn, sha256, file_size_bytes and status='pending'; poll check_extraction_status with the MPN. A datasheet nobody has read before usually takes 1-3 minutes, 5 or more for a large one or a busy queue. These are estimates, not deadlines. Failures (not charged): 'upload_not_found' (no bytes yet; retry the PUT), 'sha256_mismatch' (re-hash and re-request), 'invalid_pdf', 'mpn_not_in_pdf' (wrong file, or scanned image-only), 'token_expired' (older than 15 minutes; start again).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
upload_tokenYesOpaque token returned by request_datasheet_upload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.2

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses a 10¢ charge levied only on success, the fact that bytes are re-hashed and validated as a PDF containing the MPN, that the file is added to the organisation's private library, expected latency (1-3 min, up to 5+), and a full enumeration of failure codes with remedies. This is exactly the kind of cost/side-effect/timing context annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the cost and the core action, then success payload, then failure modes. Dense but nearly every sentence carries operational value; the timing-estimate caveat sentence is the only slightly marginal addition.

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

Completeness5/5

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

With no output schema, the description still enumerates the success return fields (document_id, mpn, sha256, file_size_bytes, status='pending'), the follow-up tool, and all error states. Nothing an agent needs to invoke and handle the result is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it ties the token to its originating tool and documents a 15-minute validity window via the 'token_expired' failure, which the schema does not mention.

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+resource ('Confirms an upload started with request_datasheet_upload') and names the exact input to carry over. It is clearly distinguishable from siblings like request_datasheet_upload and check_extraction_status by identifying itself as the second step of the upload flow.

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?

Explicitly says when to call it (after request_datasheet_upload, pass its upload_token) and what to do next (poll check_extraction_status with the MPN). Failure branches even prescribe concrete retry actions, so the agent knows when to retry vs. abandon.

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