Skip to main content
Glama

Behavior Trees

Open a tree in the editor

create_editor_link
Read-onlyIdempotent

Returns a url that opens the tree in the behaviortrees.com editor in the user's browser, auto-laid-out and editable, with no account needed. The tree travels inside the link (the URL fragment), so nothing is uploaded or stored. Fails with the validation errors if the tree has any.

Input Schema

NameRequiredDescriptionDefault
treeYesThe tree: behavior3 JSON: {"title": "...", "root": "<id of the first node under the root>", "nodes": {"<id>": {"name": "<node type>", "title": "<optional label>", "children": ["<id>", ...] (composites, in run order) or "child": "<id>" (decorators), "properties": {...}}}, "custom_nodes": [{"name": "IsEnemyVisible", "category": "condition"}]}. Positions ("display") are optional. Any node name that isn't built in (see list_node_types) must be declared in custom_nodes with a category of action, condition, composite or decorator. A whole project ({"trees": [...], "custom_nodes": [...]}) or BehaviorTree.CPP XML also works.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive) so the bar is lower, yet the description adds real behavior: the tree is encoded in the URL fragment, nothing is uploaded or stored, no account is required, and failures surface as validation errors. It stops short of describing URL size limits or what the failure payload looks like, which matters for a link-embedding tool.

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?

Three front-loaded sentences, each doing distinct work: what it returns, what it accepts in terms of privacy/side effects, and the failure mode. No filler or restatement of the title.

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?

Single required parameter, no output schema, and the description compensates by stating the return value is a URL and describing the failure case. Nothing an agent needs in order to call this 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% and the schema's tree description is already exhaustive (behavior3 JSON shape, custom_nodes declaration rules, project and XML alternatives). The description usefully frames the parameter's semantic consequence — the tree travels inside the link — rather than repeating schema detail, which is the right division of labor.

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?

Names a specific verb and resource ('Returns a url that opens the tree in the behaviortrees.com editor') and immediately characterizes the scope: auto-laid-out, editable, no account needed. That is distinguishable at a glance from siblings like convert_tree or validate_tree, which transform or check rather than open.

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

Usage Guidelines3/5

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

Usage is only implied — the reader can infer this is the tool for getting a shareable/editable link, and 'Fails with the validation errors if the tree has any' hints that validate_tree may be a precursor. But no sibling is named and there is no explicit when-to-use-this-instead-of-convert_tree guidance.

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.