Skip to main content
Glama

set_water_body_gerstner_waves

DestructiveIdempotent

Apply a Gerstner wave set to a Lake or Ocean water body and return wave count, height, and steepness, rejecting rivers and flagging fold risk when total steepness exceeds 1.

Instructions

Build a Gerstner wave set (UGerstnerWaterWaves + simple parametric generator) and apply it to a wave-supporting water body (Lake/Ocean; rivers are rejected). The generator ramps per-wave Steepness from large_wave_steepness to small_wave_steepness; the no-self-intersection (no fold, no black-crest) criterion is total_steepness (returned) <= 1 — lower the two steepness params and/or num_waves if it exceeds 1.

Returns: { water_body_label: string, wave_supported: bool, has_waves: bool, num_waves: int, max_wave_height: number, total_steepness: number, applied: bool }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
num_wavesNoOptional wave count for the generator (>= 1; default 16)
wind_angleNoOptional dominant wind angle in degrees
max_amplitudeNoOptional maximum wave amplitude in uu
min_amplitudeNoOptional minimum wave amplitude in uu
max_wavelengthNoOptional maximum wavelength in uu
min_wavelengthNoOptional minimum wavelength in uu
water_body_labelYesLabel of the AWaterBody actor (must support waves: Lake or Ocean)
steepness_falloffNoOptional exponent shaping the small->large steepness ramp (generator default 1.0)
large_wave_steepnessNoOptional steepness of the largest wave (generator default 0.2)
small_wave_steepnessNoOptional steepness of the smallest wave (generator default 0.4)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the mutation profile is known. The description adds real context beyond that: it explains the steepness ramp behavior and the no-self-intersection criterion (total_steepness <= 1) that governs visual correctness. It does not state what happens to pre-existing wave settings on the body, so not a 5.

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?

Front-loaded with the core action, then the constraint, then the return shape. Dense but every sentence carries information; the parenthetical class names are slightly verbose but justified.

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?

For a 10-parameter mutation tool with no output schema, the description covers applicability, the validity constraint, remediation advice, and even the return fields. What is missing is the effect on existing waves on the body, which the destructive annotation implies but does not explain.

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 coverage is 100%, so the baseline would be 3, but the description adds relational meaning the schema lacks: large_wave_steepness and small_wave_steepness drive a ramp, and both feed the total_steepness validity check along with num_waves. That is more than restating the schema.

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 specific verb and resource ('Build a Gerstner wave set ... and apply it to a wave-supporting water body') and names the concrete classes (UGerstnerWaterWaves + parametric generator). It also scopes the target (Lake/Ocean, rivers rejected), which separates it from siblings like set_water_body_gerstner_waves_spectrum and set_water_body_properties.

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

Usage Guidelines4/5

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

Gives a clear applicability rule (only Lake/Ocean bodies support waves, rivers are rejected) and tells the agent what to do when total_steepness exceeds 1 (lower the steepness params and/or num_waves). It does not explicitly route to an alternative sibling for the river case, so it falls just short of 5.

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