Skip to main content
Glama

Confirm Datasheet Upload

confirm_datasheet_upload
Destructive

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 new datasheet takes about 2.5 minutes at the median and 6.5 minutes at the 90th percentile; a cold GPU start can take about 12 minutes. 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

NameRequiredDescriptionDefault
upload_tokenYesOpaque token returned by request_datasheet_upload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: discloses the 10¢ fee and that it is only charged on success, the server-side validation sequence (re-hash, PDF check, MPN-on-page-1 check), private-library insertion, extraction queueing, latency distribution (2.5/6.5/12 min), and the full failure taxonomy with per-error remediation. The destructiveHint/openWorldHint flags are consistent with this write-plus-fee operation.

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?

Dense but organized: fee, precondition, server behavior, return values, timing, then failures are ordered logically, and the failure list is packed with recovery hints. Slightly long and header-less, but no sentence is filler.

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 carries the burden and delivers: it enumerates returned fields (document_id, mpn, sha256, file_size_bytes, status='pending'), the success/failure split, billing semantics, and expected latency. Nothing material for correct invocation is missing.

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

Parameters3/5

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

Schema description coverage is 100% for a single parameter, so the schema already documents upload_token as an opaque token from request_datasheet_upload. The description restates the same provenance and adds no format, length, or expiry semantics beyond what the schema carries.

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?

Specific verb+resource ('Confirms an upload') with an explicit pointer to the producing sibling (request_datasheet_upload) and the downstream poll target (check_extraction_status). An agent can place this tool in the workflow without opening any schema.

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?

States the precondition ('an upload started with request_datasheet_upload'), the required handoff value ('pass its upload_token'), and the follow-up action ('poll check_extraction_status with the MPN'). Both when-to-use and the next step are explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.