Skip to main content
Glama

set_wrangle_code

Set the VEX code on an Attribute Wrangle node to define or alter its procedural logic.

Instructions

Set VEX code on an existing Attribute Wrangle node.

Args: node_path: Path to the wrangle node. vex_code: VEX snippet to set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vex_codeYes
node_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries full responsibility. It only states the action without disclosing side effects (e.g., overwriting existing code), error handling, or prerequisites. This is a gap for a mutation 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?

The description is concise and front-loaded with the purpose. It uses a clean Args list with no wasted words, making it easy to scan.

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

Completeness2/5

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

For a simple setter, the description covers the basic action but omits any behavior on invalid inputs, whether the node is cooked, or return values. Without annotations or output schema, it is not fully complete for reliable invocation.

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?

The description provides one-line explanations for both parameters, which adds meaning beyond the schema's bare titles. However, it lacks details on path format or VEX syntax. With zero schema coverage, this partial compensation is insufficient.

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 states a clear action ('Set') on a specific resource ('VEX code on an existing Attribute Wrangle node'). It distinguishes from siblings like get_wrangle_code (get vs set) and create_wrangle (new vs existing) by emphasizing 'existing'.

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 implies usage for existing wrangle nodes but does not explicitly mention alternatives or conditions. It lacks exclusions or guidance on when to prefer this tool over get_wrangle_code or create_wrangle.

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