Skip to main content
Glama

set_attribute_meta_on_set_class

DestructiveIdempotent

Author a DataTable of attribute metadata to define starting, min, and max values for a UAttributeSet class, then validate it against the class CDO without writing live actor values.

Instructions

Author the DataTable that gives a UAttributeSet class its starting/min/max values, then validate it by calling InitFromMetaDataTable on that class's CDO. WHAT IT DOES NOT DO: it never writes the CDO -- only the DataTable is authored, and the running game is still expected to call CDO->InitFromMetaDataTable(DataTable) itself at character init (typically from an ASC's InitStats path). Use set_attribute_base_value to change a LIVE actor's attribute instead.

Returns: { attribute_set_class, data_table_path, row_count, rows_imported, init_from_meta_succeeded, saved, problems }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metadata_rowsYesArray of {attribute_name, base_value, min_value, max_value, can_stack, derived_info}
data_table_pathNoTarget asset path (default "/Game/UEAgent/AttributeMeta/<ClassName>_Meta")
attribute_set_class_pathYesFull UAttributeSet class path (e.g. "/Script/GameplayAbilities.AbilitySystemTestAttributeSet" or "/Game/MyAS")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructive/idempotent/not-readOnly, but the description goes well beyond them: it discloses that only the DataTable is written and NOT the CDO, that it performs a validation pass via InitFromMetaDataTable on the CDO, and that the running game must still apply the table itself. It also enumerates the return payload, which matters since no output schema exists.

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

Conciseness5/5

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

Front-loads the primary action, then the critical negative constraint, then the alternative. Every sentence carries distinct information; the WHAT-IT-DOES-NOT-DO line is the highest-value sentence in the block and is not padding.

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?

For a mutation tool with no output schema, the description supplies the write target, the non-target (CDO), the validation behavior, the runtime contract, the sibling alternative, and the return fields. An agent has everything needed to invoke and interpret it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters (metadata_rows, data_table_path, attribute_set_class_path) are already documented in the schema. The description references 'starting/min/max values' but adds no syntax or format detail beyond what the schema provides, so the baseline 3 applies.

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 precise verb+resource: it authors the DataTable<FAttributeMetaData> that supplies a UAttributeSet class its starting/min/max values. It also names the sibling it must not be confused with (set_attribute_base_value) and the exact class it operates on, so an agent can distinguish it from neighboring attribute tools without opening a 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 explicit when-to-use (author/validate the meta-data table for a class), explicit when-NOT (it never writes the CDO; the game calls InitFromMetaDataTable at init), and names the alternative for the live-actor case. Nothing 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.

Deploy Server

Other Tools