Skip to main content
Glama

elliptic_curve_operation

Computes elliptic curve invariants over rationals: rank, torsion order, discriminant, j-invariant, conductor, and generators from Weierstrass coefficients.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionNoNamed workspace to use. Workspaces have independent variables; omit for 'default'.default
operationYesOne of: rank, torsion_order, discriminant, j_invariant, conductor, gens
coefficientsYesCurve coefficients [a1,a2,a3,a4,a6] or short Weierstrass [a,b] for y^2 = x^3 + a*x + b

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must carry the transparency burden. It mentions the mathematical domain (over Q) and input form, but does not disclose operational behavior such as whether a Sage session is required, whether the session parameter affects state, or error behavior. This is a moderate gap for a compute tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences efficiently pack the tool's purpose, scope, and a usage preference. No redundant wording; all information earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is moderately complex but the output schema and parameter descriptions cover much. The description is concise but leaves out session-related behavior and edge cases; however, given the output schema, it's sufficient for most agents to use correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description lists the operation names which align with the operation property, and mentions Weierstrass coefficients, but does not add significant detail beyond the schema's own descriptions of coefficients and operation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool computes elliptic curve invariants over Q (rank, torsion order, discriminant, j-invariant, conductor, generators) from Weierstrass coefficients. It names specific outputs, distinguishing it from generic math tools like evaluate_sage or number_theory_operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly recommends 'Prefer this over evaluate_sage for curve invariants,' giving direct guidance on when to choose this tool over a sibling. This is exactly what usage guidelines should provide.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/XBP-Europe/sagemath-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server