edit_expertise
Read or update an existing expertise in your mcpforx library. Do NOT call this during a tree run — use find_expertise and next_step for that.
READ MODE: call with code only (no tree argument). Returns the full tree in create_expertise schema format, with node ids as database UUIDs. Use these UUIDs in edge from/to fields when referencing existing nodes. New nodes you add can use any string id.
WRITE MODE: call with code and tree. The tree atomically replaces all nodes and edges. The expertise code, creator, scope, and run history are preserved. Omit name/description/tags to keep existing values. Runs validate_expertise logic internally — fix any errors before calling.
TYPICAL WORKFLOW: edit_expertise(code) → modify the returned tree → edit_expertise(code, modified_tree).
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": "<code>"
},
"name": "edit_expertise"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The 6-character expertise code (e.g. 'OMYF0S'). | |
| tree | No | The updated expertise definition. Omit to read the current tree. Same schema as create_expertise. name/description/tags are optional — omit to keep existing values. |