find_similar_functions
Identify functions with similar signatures and code patterns to a reference function in Haskell codebases for code analysis and refactoring.
Instructions
Find functions similar to a given function based on signature and code
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": {
"function_name": "<function_name>"
},
"name": "find_similar_functions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function_name | Yes | Name of the reference function | |
| module_name | No | Module containing the reference function (optional) | |
| similarity_threshold | No | Similarity threshold (0.0 to 1.0) | |
| limit | No | Maximum number of similar functions to return |