find_similar_logic
Find functions or classes with similar behavioral patterns using logic embeddings, returning similarity scores, regardless of naming conventions.
Instructions
Find entities with similar behavioral patterns — uses logic embeddings to find functions/classes that do similar things regardless of naming. Returns similarity scores. Use when asked 'what other functions do the same thing', 'find similar implementations', or 'what behaves like X'.
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": {
"name": "<name>"
},
"name": "find_similar_logic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Entity name to compare against | |
| top_k | No | Max similar entities to return (default: 5) |