Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

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.

json· JSON resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
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

HTTP
POST https://api.elysiatools.com/en/api/tools/restriction-fragment-length

Parameters

NameTypeRequiredDescription
topologyselectYesCircular plasmids give n fragments from n cuts; linear DNA gives n+1.
inputModeselectYesEnter exact cut positions, or just the number of cut sites for an average estimate.
substrateLengthBpnumberYesTotal length of the substrate (plasmid or linear DNA) in base pairs.
cutPositionstextYesCut 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:

mcp.json
{
  "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:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "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
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).
Browse toolsOpen tool

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools
number
Yes
Number of cut sites (count mode); fragments = n circular or n+1 linear.
decimalPlacesnumberNo—

Response format

JSON result

JSON
{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}

Questions or issues? Contact [email protected]