Geometry Operation
geometry_operationCompute geometric properties of point sets: Euclidean distance, polygon area, polytope volume, convex hull vertices, and convexity tests.
Instructions
Computational geometry on point sets: euclidean distance, polygon area, polytope volume, convex hull vertices and convexity tests. Prefer this over evaluate_sage for these.
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": {
"operation": "<operation>",
"points": "<points>"
},
"name": "geometry_operation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes | List of points as coordinate lists | |
| 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: distance, polygon_area, polytope_volume, convex_hull_vertices, is_convex |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||