Education
Exact or averaged restriction-fragment sizes: circular substrates give n fragments from n cuts (wrapping the origin), linear DNA n+1, from cut positions or a site count. Includes 4/6-base recognizer frequencies (256/4096 bp) and agarose resolution advice. Sambrook & Russell / REBASE derived. Educational use only.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/restriction-fragment-length' \
-H 'Content-Type: application/json' \
-d '{"topology":"circular","inputMode":"positions","substrateLengthBp":2686,"cutPositions":"1000, 2000","cutSiteCount":2,"decimalPlaces":2}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/restriction-fragment-length| Name | Type | Required | Description |
|---|---|---|---|
| topology | select | Yes | Circular plasmids give n fragments from n cuts; linear DNA gives n+1. |
| inputMode | select | Yes | Enter exact cut positions, or just the number of cut sites for an average estimate. |
| substrateLengthBp | number | Yes | Total length of the substrate (plasmid or linear DNA) in base pairs. |
| cutPositions | text | Yes | Cut coordinates counted from base 1 (positions mode); each must be strictly inside the substrate and unique. |
| cutSiteCount |
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-restriction-fragment-length": {
"name": "restriction-fragment-length",
"description": "Exact or averaged restriction-fragment sizes: circular substrates give n fragments from n cuts (wrapping the origin), linear DNA n+1, from cut positions or a site count. Includes 4/6-base recognizer frequencies (256/4096 bp) and agarose resolution advice. Sambrook & Russell / REBASE derived. Educational use only.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=restriction-fragment-length",
"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": "restriction-fragment-length",
"arguments": {
"topology": "circular",
"inputMode": "positions",
"substrateLengthBp": 2686,
"cutPositions": "1000, 2000",
"cutSiteCount": 2,
"decimalPlaces": 2
}
}
}| number |
| Yes |
| Number of cut sites (count mode); fragments = n circular or n+1 linear. |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]