add_types_functions
Establish relationships between types and functions by assigning roles, enabling queries like 'what functions use TypeX?'
Instructions
Link tracked types to the functions that use them with a role (factory, transformer, validator, etc.). Enables 'what functions use TypeX?' queries.
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": {
"relationships": "<relationships>"
},
"name": "add_types_functions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| relationships | Yes | Array of tuples [(type_id, function_id, role), ...] - role: 'factory', 'transformer', 'operator', 'pattern_matcher', 'accessor', 'validator', 'combinator' |