Skip to main content
Glama
ProTech001
by ProTech001

mmar_create_class_instance

Creates a new element in a scene by instantiating a meta-class with its attribute instances.

Instructions

Create a new class instance (element/node) within a scene instance.

IMPORTANT: The API does NOT auto-create attribute instances. You MUST include them in the payload. For each attribute on the meta-Class, create an attribute_instance with:

  • uuid: new UUIDv4

  • name: same as meta-attribute name

  • value: the desired value (or the meta-attribute's default_value)

  • uuid_attribute: the meta-attribute's UUID

Example payload: { "uuid": "", "uuid_class": "", "name": "My Element", "coordinates_2d": {"x": 0, "y": 0, "z": 0}, "attribute_instance": [ { "uuid": "", "name": "Name", "value": "My Element", "uuid_attribute": "" } ] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
class_instance_dataYesJSON string of the ClassInstance data. Must include 'uuid', 'uuid_class', 'name', 'coordinates_2d', and 'attribute_instance' array.
scene_instance_uuidYesThe UUID of the SceneInstance to add the element to
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses a critical non-obvious behavior: 'The API does NOT auto-create attribute instances. You MUST include them in the payload.' This prevents a common failure. It does not mention response format or error cases, but the warning is highly valuable.

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?

The description is front-loaded with the purpose, then a bolded IMPORTANT warning, and finally an example. The example is lengthy but directly useful for constructing the payload. No wasted sentences; the structure is logical and readable.

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

Completeness4/5

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

Given the tool's complexity (nested attribute instances) and lack of an output schema, the description thoroughly explains the input requirements. It does not cover return values or error handling, but for a creation tool with no output schema, the input focus is appropriate. The warning about attribute instances makes it complete enough to use correctly.

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

Parameters4/5

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

The schema already provides descriptions for both parameters, so coverage is 100%. The description adds further semantic value by explaining the required structure of the JSON string and giving a concrete payload example, especially the attribute_instance array with uuid, name, value, and uuid_attribute. This goes beyond the schema's brief property descriptions.

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?

The description starts with 'Create a new class instance (element/node) within a scene instance,' providing a specific verb and resource with clear scope. This distinguishes it from sibling tools like mmar_create_scene_instance or mmar_create_attribute_for_class.

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?

The description does not explicitly state when to use this tool vs. alternatives, but the purpose and the important note about attribute instances imply when it is needed. It would benefit from saying 'Use this to add an element to an existing scene instance' and possibly contrasting with update or delete operations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ProTech001/mmar-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server