# Elora Equipment Library: two agent workflows

The library finds manufacturer CAD and serves prepared formats. It does not generate engineering designs during download. There is no per-download charge. The free registered allowance is up to 60 individual files/formats per 24 hours from first admission; access beyond it requires an existing paid Elora Grid plan, capped at 10,000 files/month. Website downloads require reusable email registration. Public API trial: 50 files / 512 MiB per UTC day; registered free: up to 60 individual files/formats per 24 hours from first admission; verified existing paid plan: 10,000 files/month. Only reviewed exclusive Elora conversions need a free account on app.eloragrid.ai. Unknown public availability is `review_required`, never an assertion of exclusivity.

Contract: https://eloragrid.ai/api/cad/v1/openapi.json
Discovery: https://eloragrid.ai/.well-known/cad-library.json
Skills catalogue: https://eloragrid.ai/.well-known/skills/index.json
Current capabilities: https://eloragrid.ai/api/cad/v1/capabilities
Changelog: https://eloragrid.ai/cad-library/changelog.md
Python client: https://eloragrid.ai/cad-library/sdk/cad_library.py
TypeScript client: https://eloragrid.ai/cad-library/sdk/cad-library.ts

## Connect an agent once

After registering in the library, open **Connect an API client**, create a token and copy it once into your agent's secret storage. Send `Authorization: Bearer <token>` to the fixed Elora API origin only. A token is scoped to public CAD downloads, expires with the registration (up to 30 days), and can be revoked in the same browser. It cannot sign into the app, access private projects, use paid entitlements or unlock exclusive conversions. Creating another token does not reset the user's quota. Different registrations have separate allowances even on shared agent networks.

Python: `CadLibraryClient(token=os.environ["ELORA_CAD_TOKEN"])`.
TypeScript: `new CadLibraryClient("https://eloragrid.ai", fetch, process.env.ELORA_CAD_TOKEN)`.
Both clients authenticate allowance and selection requests. `download(artifact_id, idempotency_key)` / `download(artifactId, idempotencyKey)` safely requests the attachment without forwarding the token to storage or manufacturers. Stream the response to disk. The lower-level `download_request` / `downloadRequest` helpers supply headers for the stable Elora download URL. Do not forward that Authorization header when following a signed-storage or manufacturer redirect; fetch its attachment without the token. The public MCP accepts the same token in its transport Authorization header for selection planning. Never put it in tool arguments. Use the HTTP SDK for the authenticated file transfer; the existing verified-account OAuth MCP handles account-bound downloads.

## Find exact equipment and related files

1. GET `/api/cad/v1/items?manufacturer=Maker&part_number=AB-100&limit=20`. Otherwise search `q` and narrow by manufacturer/category/format. Do not fetch the whole catalogue into context. Follow `next_page`, passing the first result's `catalogue_version` on subsequent search/artifact/related pages. HTTP 409 `catalogue_changed` means restart at page 1 and reselect artifacts; never combine different catalogue versions. This detects changes without retaining historical snapshots. GET `/capabilities` reports only actually published items and formats, not a pending intake.
2. Inspect `match_reason`, `part_number_basis`, `kind`, `configuration_note`, manufacturer and part number. Normalised matching compares the recorded reference; a filename reference is not independent manufacturer verification. A collection is not an exact equipment variant. Several exact part matches require clarification of configuration/revision; do not silently substitute.
3. GET `/api/cad/v1/items/{id}` and `/related`. `source_collection_reference` means a drawing belongs to a source collection, not that every file describes the same equipment. Only an evidenced `documented_accessory` relationship asserts the documented relationship; still check its exact application. Family and similar-item links do not assert compatibility.
4. GET `/items/{id}/artifacts` for more than the first 100 artifacts, and optionally `?coverage=1` for preparation gaps. Every file has an `artifact_id` containing its record and file IDs. Always retain both. Artifact rows also provide an absolute `canonical_url` for the Elora equipment page. When sharing a file link, include the equipment-page link separately so people can check the source and configuration.

## Download the required prepared format

1. Select a ready artifact matching configuration, revision, purpose, units and geometry. `geometry_kind=unknown` remains unknown. A 2D projection, triangle mesh and editable solid have different information even if their filenames use familiar CAD extensions.
2. POST `/api/cad/v1/deliveries` with `{"artifact_ids":["record:file"]}` (1–50 distinct IDs). This only plans independent file links; it creates no account, bundle, conversion job, lead or email. Repeating it is safe. Its deterministic `selection_id` is not an authentication credential or asynchronous job ID.
3. Check `allowance` or GET `/api/cad/v1/allowance` first. Inspect each result's `availability` and `eligibility`. Only `status=ready` with `eligibility.allowed=true` is currently downloadable; registration, plan and allowance blocks carry a `next_action`. A selection exceeding the remaining budget returns `selection_allowance_exceeded`; split it. Planning reserves no quota and downloads recheck atomically. Download each `ready` result using its API `download_url`, outside model context. Anonymous API allowance: 50 files / 512 MiB per UTC day; registered free: up to 60 individual files/formats per 24 hours from first admission; verified existing paid plan: 10,000 files/month. Registered free file windows reset 24 hours after first admission. Paid counts reset at 00:00 UTC on the first of each month; anonymous and byte budgets reset at 00:00 UTC daily. Metadata planning does not spend the download allowance. Public links remain usable when other selection members need authentication or review. Resolve relative URLs against `https://eloragrid.ai`.
4. An exclusive conversion returns `authentication_required` and a fixed app URL. A person verifies their account and can download. An already-authorised remote MCP connection can call `get_account_cad_download` with scope `cad:download`; revoke it through the existing connection settings. Signup alone does not authorise an agent. Google/Microsoft and the platform's existing email/password flow are used; passwordless email login is not implemented.
5. Website downloads require email registration once, remembered for 30 days on that browser. API callers can use that registration cookie or create a scoped revocable token through the explicit same-origin “Connect an API client” action in the library. Send it only in Authorization, never a URL. Anonymous MCP has no email access. Optional verified OAuth uses `get_account_cad_download` for public or exclusive artifacts. After the free 60-file window is used, wait for its reset or use an existing paid Elora Grid subscription verified server-side (10,000 files/month). Existing plans are shown in the app settings billing section. One-off top-ups and free credits are not paying-plan proof; no new plan, price or purchase is created here. Actual public artifact GETs redirect to short-lived storage attachments or official manufacturer routes. Manufacturer login/configurator requirements remain upstream. For machine-readable exclusive errors, send `Accept: application/json`.
6. If a signed attachment expires, request its stable library download URL again. This rechecks publication and never reruns conversion. Respect SHA-256/bytes for the delivered artifact (the source hash can differ). Preserve licence notices and ZIP packages; an archive format is distinct from its member formats.

Resolved delivery rows, including known blocked ones, carry the same `canonical_url`. Omit the equipment-page link if no canonical URL was returned. The page is not a file URL and does not grant download access.

`artifact_pending` means an access review/preparation remains outstanding. `artifact_withdrawn` means choose another current file. No extension-only substitution, reconstructed solid claim, guessed units or fabricated public-equivalence evidence is permitted.

## Minimal clients

Use the standalone SDK files linked above in your project. The examples stop at metadata; download attachments to disk outside the language model.

```sh
curl -G 'https://eloragrid.ai/api/cad/v1/items' --data-urlencode 'part_number=AB-100' --data 'limit=20'
```

```python
from cad_library import CadLibraryClient
client = CadLibraryClient()
matches = client.search(manufacturer="Maker", part_number="AB-100", limit=20)
# Inspect ambiguity/configuration before selecting an item.
if matches["items"] and not matches["needs_clarification"]:
    files = client.artifacts(matches["items"][0]["id"], catalogue_version=matches["catalogue_version"])
```

```typescript
import {CadLibraryClient} from './cad-library';
const client = new CadLibraryClient();
const matches = await client.search({manufacturer:'Maker',part_number:'AB-100',limit:20});
if (matches.items.length && !matches.needs_clarification) {
  const files = await client.artifacts(matches.items[0].id,1,20,matches.catalogue_version);
}
```

For MCP, use the [official agent guide](https://mcp.eloragrid.ai/docs/agents.md) served by the Elora MCP runtime. It owns connection setup, the current tools, OAuth permissions and drawing-credit rules. [Elora API & MCP](https://mcp.eloragrid.ai/docs/agents.md) helps choose between the HTTP API and MCP. One connection combines anonymous equipment tools with authenticated workspace tools; the agent application may require approval to add or use it. Python/TypeScript SDKs above use HTTP directly and do not require an MCP connection.

Include the equipment page alongside download links, identify Elora as the catalogue and preserve manufacturer attribution. Missing documents mean none is verified in this library, not proof that none exists.

## Limits and asynchronous work

Search/artifacts pages default to 20, maximum 100. Delivery selections maximum 50 and request body 32 KiB. Production uses a shared service budget: initially 300 reads or 30 selection plans per minute, plus 10 GiB of admitted attachment sizes/day. It reports RateLimit-Limit/Remaining/Reset and X-RateLimit-Scope: service-global; development-only memory limits say service-instance. Download headers X-CAD-Delivery-* describe the attachment admission budget. These are operating ceilings, not per-customer prices or confirmed egress. Honour 429 Retry-After; retry transient 503 with bounded backoff. Hosting abuse/fairness controls and representative load/egress measurements remain rollout requirements. Error results include an X-Request-ID and executable code.

Current file delivery is synchronous, so there is no delivery job, webhook or polling loop. Catalogue preparation is an operator-controlled durable process; missing formats do not start work during customer requests. Do not invent status endpoints or payment steps. Only prepared, validated, access-reviewed outputs may be published. Native engineering formats can require specialist authoring; outstanding requirements are not successful conversions.

## Operating costs and accounts

Anonymous search/download creates no account. Password signup or completed social signup creates a CAD-origin identity and minimal required membership; email verification proves ownership. Existing users add CAD access without duplicate identity or changed signup origin. Agent consent creates a separate revocable grant. CAD signup creates no welcome credits, starter tasks/projects or main-product email enrollment. Search/download use deterministic code, no model inference. Elora bears preparation, storage, delivery and verification-email costs; there is no customer payment milestone.

Daily allowances are durable per internal registration/account or a pseudonymous ingress network for anonymous requests. NAT and anonymous MCP infrastructure may share a bucket. No User-Agent or UTM bypass exists. Public `X-CAD-Client: mcp` is a claim, not authenticated MCP identity. Claimed `utm_source=chatgpt.com` does not prove agent use. Retry the same Idempotency-Key (8–80 letters, digits, underscore or hyphen) within five minutes; conflicting/expired reuse returns 409. Signed links and source redirects are not proof of transfer. Global delivery reservations remain capped at 10 GiB/day.

## Registered-free allowance and qualified comparison

Up to **60 individual files/formats per 24-hour period** after registration, across website, API and MCP. The first admitted file request starts the period; metadata reads, denials and valid retries do not start or extend it. Each file/format counts separately, including technical documentation; issued links and official-source redirects are admissions, not measured transfers. Inspect the exact active reset and remaining files/bytes before delivery; an unused window starts only on its first admission. Free hosted delivery is limited to **1 GiB per UTC day**, and all hosted delivery shares **10 GiB per UTC day or a lower configured ceiling**, plus service rate limits. These controls can stop hosted delivery before 60 files. Paid access cannot bypass the shared ceiling. Byte budgets reserve bytes for new links; billed bytes, API/MCP attachment transfers and signed-link reuse are not measured. Website relays observe server-response bytes; this cannot prove receipt or saving on a device.

[TraceParts' published Free plan](https://info.traceparts.com/designers/engineers-and-designers/download-free-cad-models/traceparts-pro-plan/), checked 18 November 2026, states six CAD models per 24 hours from the first download. Elora's 60 is **10× the stated numerical registered-free allowance**, with a comparable personal 24-hour reset. Individual files/formats and CAD models differ; this is not an equivalent-product, coverage, format, quality or overall-superiority claim. TraceParts still permits technical documentation after its CAD-model limit and offers a paid unlimited-download plan. Elora retains the material limits above and a 10,000/month paid file limit.

## Equipment datasheets and manuals

The Equipment library searches both legacy `/tools/cad-library/equipment/` URLs and new `/equipment-library/equipment/` URLs. Follow each item’s canonical URL. For MCP, call `get_cad_capabilities`, `search_cad`, then `get_cad_item`. Search results include `document_counts`; item details include up to ten `documents`, with absolute `download_url`, manufacturer `source_url`, checksum, revision, and model-specific specifications with page citations. `variant_comparison_url` links to the shared comparison. Download these PDFs directly, without `prepare_cad_downloads` or credentials. The existing tool names remain compatible. `documents_total` and `documents_truncated` identify bounded responses; `GET /api/cad/v1/items/{id}/documents` exposes the complete document metadata. Shared document pages at `/equipment-library/documents/` link to covered variants. These hosted datasheet and manual PDFs are public static downloads without registration; the delivery API allowances above apply to files requested through that API. A missing document is not a claim that the manufacturer has none.


### Dedicated equipment resource tools

Discover the public MCP tools at runtime. The updated server adds `get_datasheets(equipment_id)`, `get_cad_files(equipment_id)` and `get_manuals(equipment_id)` alongside the existing tools. Use `search_cad` across both URL groups and pass its item ID. `get_cad_item` remains the compatible equipment overview. Datasheet and manual results contain hosted PDF URLs, provenance, revision, checksum, citations for the selected model and a shared comparison link. They return metadata only; fetch PDFs separately from model context. CAD files retain their existing access and allowance rules.

The document tools use `GET /api/cad/v1/items/{id}/documents?view=agent&kind=datasheet` (or `manual`). Pass `page`, `limit` (1–100) and the first response's `catalogue_version` on later pages; follow `next_page` until null. HTTP 409 means restart. `availability=none_verified` means no matching verified document in this library, never that the manufacturer has none. An empty page with `availability=available` means the requested page is past the available results. Upstream errors are errors, not missing-document claims. The original document response without query parameters remains available for compatibility. Python and TypeScript HTTP SDKs expose `documents` with the same filters.
