Science & Education
Calcula escala, campo de visión, límites de difracción y muestreo Nyquist, y descarga una barra SVG transparente.
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/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}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/microscope-scale-bar-calibrator| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| imageWidthPx | number | Sí | — |
| imageHeightPx | number | Sí | — |
| cameraPixelSizeUm | number | Sí | — |
| objectiveMagnification | number | Sí | — |
| relayMagnification | number | Sí | — |
Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-microscope-scale-bar-calibrator": {
"name": "microscope-scale-bar-calibrator",
"description": "Calcula escala, campo de visión, límites de difracción y muestreo Nyquist, y descarga una barra SVG transparente.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=microscope-scale-bar-calibrator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"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 | Sí | — |
| wavelengthNm | number | Sí | — |
| numericalAperture | number | Sí | — |
| barLengthUm | number | No | — |
| barColor | color | No | — |
| barPosition | select | No | — |
| barThicknessPx | number | No | — |
| barMarginPx | number | No | — |
| showLabel | checkbox | No | — |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}¿Dudas o problemas? Contacta con [email protected]