Skip to main content
Glama

add_custom_property

Add a typed custom property to a Perspective component in a view, with an initial value and optional dry-run preview before writing.

Instructions

Add a custom property to a component.

Args: view_path: View containing the component. component_name: Component meta.name. property_name: New property name. property_type: Perspective type, e.g. String, Int4 or Boolean. default_value: Initial value. project: Project name; defaults to the active project. confirm: Must be True to write. dry_run: Preview the change without writing.

Returns: The updated custom-property map or a preview payload.

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": {
      "view_path": "<view_path>",
      "component_name": "<component_name>",
      "property_name": "<property_name>",
      "property_type": "<property_type>"
    },
    "name": "add_custom_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
dry_runNo
projectNo
view_pathYes
default_valueNo
property_nameYes
property_typeYes
component_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two important behaviors: confirm must be True to actually write, and dry_run previews without writing. It also states the return shape. It omits what happens if the property already exists (overwrite vs error), whether the change is reversible, and any permission requirements.

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?

The purpose sentence is front-loaded, and the Args/Returns blocks are compact and scannable with zero filler. Every line maps to a parameter or the return value; nothing is redundant prose.

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

Completeness3/5

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

For an eight-parameter mutation tool with no annotations, the definition covers parameters and write-gating well, and an output schema exists so the Returns line is a helpful bonus rather than a necessity. Gaps remain around overwrite semantics, failure modes, and permissions, which matter for a write operation.

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?

Schema description coverage is 0%, so the description must compensate, and it documents all eight parameters. It adds real meaning beyond the titles: property_type gets concrete examples (String, Int4, Boolean), project notes the active-project default, and component_name clarifies it is the meta.name.

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

Purpose4/5

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

The first sentence names a specific verb and resource (add a custom property to a component), which an agent can distinguish from sibling mutation tools like add_device or add_icon. It does not, however, explicitly contrast with the closest sibling, add_style_class_to_component, which also mutates a component.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, no mention of prerequisites such as the component already existing, and no routing to alternatives for editing versus creating properties. The confirm/dry_run parameters imply a write workflow, but the description never states the conditions under which this tool should be chosen.

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