Coding Theory Operation
coding_theory_operationCompute error-correcting code parameters—length, dimension, minimum distance, rate, and generator matrix—for Hamming and generalized Reed-Solomon codes.
Instructions
Error-correcting codes: length, dimension, minimum distance, rate and generator matrix for Hamming and generalized Reed-Solomon codes. Prefer this over evaluate_sage for code parameters.
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": {
"code_type": "<code_type>",
"operation": "<operation>"
},
"name": "coding_theory_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 |
| code_type | Yes | Code constructor, e.g. 'HammingCode(GF(2),3)', 'GeneralizedReedSolomonCode(GF(7).list()[:6],3)' | |
| operation | Yes | One of: length, dimension, minimum_distance, generator_matrix, rate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||