Science & Education
Calculate microscope object scale, field of view, diffraction limits, Nyquist sampling, and download a transparent SVG scale bar.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/microscope-scale-bar-calibrator' \
-H 'Content-Type: application/json' \
-d '{"imageWidthPx":2048,"imageHeightPx":1536,"cameraPixelSizeUm":3.45,"objectiveMagnification":40,"relayMagnification":1,"binning":1,"wavelengthNm":550,"numericalAperture":1,"barLengthUm":20,"barColor":"#ffffff","barPosition":"bottom-right","barThicknessPx":8,"barMarginPx":32,"showLabel":true}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/microscope-scale-bar-calibrator| Name | Type | Required | Description |
|---|---|---|---|
| imageWidthPx | number | Yes | — |
| imageHeightPx | number | Yes | — |
| cameraPixelSizeUm | number | Yes | — |
| objectiveMagnification | number | Yes | — |
| relayMagnification | number | Yes | — |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-microscope-scale-bar-calibrator": {
"name": "microscope-scale-bar-calibrator",
"description": "Calculate microscope object scale, field of view, diffraction limits, Nyquist sampling, and download a transparent SVG scale bar.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=microscope-scale-bar-calibrator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "microscope-scale-bar-calibrator",
"arguments": {
"imageWidthPx": 2048,
"imageHeightPx": 1536,
"cameraPixelSizeUm": 3.45,
"objectiveMagnification": 40,
"relayMagnification": 1,
"binning": 1,
"wavelengthNm": 550,
"numericalAperture": 1,
"barLengthUm": 20,
"barColor": "#ffffff",
"barPosition": "bottom-right",
"barThicknessPx": 8,
"barMarginPx": 32,
"showLabel": true
}
}
}| binning | number | Yes | — |
| wavelengthNm | number | Yes | — |
| numericalAperture | number | Yes | — |
| barLengthUm | number | No | — |
| barColor | color | No | — |
| barPosition | select | No | — |
| barThicknessPx | number | No | — |
| barMarginPx | number | No | — |
| showLabel | checkbox | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]