agda_helper_function
Generate a helper function type signature for an Agda goal by providing file path, goal ID, and optional partial application expression.
Instructions
Generate a helper function type signature for a goal.
The expression should be a partial application like "h x y" where h is the helper name and x, y are arguments. Agda will generate the type signature for h. If empty, uses whatever is in the goal.
Args: file_path: Absolute path to the .agda file goal_id: The goal/hole number (from agda_load output) expr: Partial application (e.g. "helper x y")
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": {
"file_path": "<file_path>",
"goal_id": "<goal_id>"
},
"name": "agda_helper_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | No | ||
| goal_id | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |