Elliptic Curve Operation
elliptic_curve_operationCompute elliptic curve invariants over Q from Weierstrass coefficients: rank, torsion order, discriminant, j-invariant, conductor, and generators.
Instructions
Elliptic curves over Q: rank, torsion order, discriminant, j-invariant, conductor and generators, from Weierstrass coefficients. Prefer this over evaluate_sage for curve invariants.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"coefficients": "<coefficients>",
"operation": "<operation>"
},
"name": "elliptic_curve_operation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Workspace to use, as a name or a portable handle. Workspaces have independent variables. A name is scoped to this MCP session; a handle returned by start_sage_session (workspace_token) reaches the same workspace across reconnects and is a bearer credential -- keep it secret. Omit for 'default'. | default |
| operation | Yes | One of: rank, torsion_order, discriminant, j_invariant, conductor, gens | |
| coefficients | Yes | Curve coefficients [a1,a2,a3,a4,a6] or short Weierstrass [a,b] for y^2 = x^3 + a*x + b |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||