Skip to main content
Glama

mcpforx

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

NameRequiredDescriptionDefault
codeYesThe 6-character expertise code (e.g. 'OMYF0S').
treeNoThe updated expertise definition. Omit to read the current tree. Same schema as create_expertise. name/description/tags are optional — omit to keep existing values.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full behavioral burden and does so: it discloses that writes atomically replace all nodes and edges (destructive scope), that code/creator/scope/run history are preserved, that omitted name/description/tags retain existing values, and that validate_expertise logic runs internally. These are exactly the facts an agent needs before a mutation it cannot see the effects of.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Mode headers and a closing workflow line make it scannable and front-loaded, with the critical exclusion stated first. The TYPICAL WORKFLOW line partially restates what READ MODE and WRITE MODE already say, which is the only redundancy in an otherwise dense description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description explains what read mode returns (full tree in create_expertise schema format with UUID node ids), and it covers the nested tree object, mode selection, preservation rules, and validation behavior. For a two-parameter tool with a nested payload, nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond it: presence/absence of 'tree' selects read vs write mode, read mode returns database UUIDs usable in edge from/to fields, new nodes may use any string id, and omitted optional fields preserve existing values. This is semantic guidance the schema does not encode.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Read or update an existing expertise') and immediately splits the tool into two explicitly named modes with their argument signatures. An agent can distinguish it from create_expertise, find_expertise, and validate_expertise without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-not rule ('Do NOT call this during a tree run — use find_expertise and next_step for that') naming the alternative tools, plus a concrete TYPICAL WORKFLOW sequence for the intended read-modify-write loop. Nothing about when to select this tool is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources