Education
Restriction Fragment Length Calculator
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.
Quick start
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/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}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
POST https://api.elysiatools.com/en/api/tools/restriction-fragment-lengthParameters
| 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 |
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
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": "https://api.elysiatools.com/mcp/sse?toolId=restriction-fragment-length",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
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
}
}
}