Math & Numbers
Расшифровывает и подбирает 4-полосные, 5-полосные, 6-полосные и SMD-маркировки резисторов
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/resistor-color-code-calculator' \
-H 'Content-Type: application/json' \
-d '{"mode":"decode","format":"4-band","smdStyle":"auto","band1":"yellow","band2":"violet","band3":"black","multiplierBand":"red","toleranceBand":"gold","tempcoBand":"brown","smdCode":"e.g. 472, 1001, 4R7, 01C","resistanceValue":"e.g. 4.7k, 1M, 330, 0R22","tolerance":"gold","temperatureCoefficient":"brown","precision":4}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/resistor-color-code-calculator| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| mode | select | Да | — |
| format | select | Да | — |
| smdStyle | select | Нет | — |
| band1 | select | Нет | — |
| band2 | select | Нет | — |
| band3 |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-resistor-color-code-calculator": {
"name": "resistor-color-code-calculator",
"description": "Расшифровывает и подбирает 4-полосные, 5-полосные, 6-полосные и SMD-маркировки резисторов",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=resistor-color-code-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "resistor-color-code-calculator",
"arguments": {
"mode": "decode",
"format": "4-band",
"smdStyle": "auto",
"band1": "yellow",
"band2": "violet",
"band3": "black",
"multiplierBand": "red",
"toleranceBand": "gold",
"tempcoBand": "brown",
"smdCode": "e.g. 472, 1001, 4R7, 01C",
"resistanceValue": "e.g. 4.7k, 1M, 330, 0R22",
"tolerance": "gold",
"temperatureCoefficient": "brown",
"precision": 4
}
}
}| select |
| Нет |
| — |
| multiplierBand | select | Нет | — |
| toleranceBand | select | Нет | — |
| tempcoBand | select | Нет | — |
| smdCode | text | Нет | — |
| resistanceValue | text | Нет | — |
| tolerance | select | Нет | — |
| temperatureCoefficient | select | Нет | — |
| precision | number | Нет | — |
JSON-результат
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Вопросы или проблемы? Свяжитесь с [email protected]