Skip to main content
Glama

shape_the_sound

Read-onlyIdempotent

Kac's question in reverse: design a polygonal drumhead whose lowest tones play requested frequency ratios (a fifth, a triad, a pentatonic scale), each accepted within ±tolerance_cents. proven_impossible is returned only when proven theorems exclude every ratio combination inside those tolerance windows for a connected uniform membrane with a fixed edge: simple fundamental, f2/f1 ≤ j11/j01 ≈ 1.5933 with equality for the disk (Ashbaugh–Benguria 1992), and Yang's universal inequality minimized exactly over the window box; an exact-target exclusion is reported separately. Otherwise multi-start L-BFGS with exact finite-element shape derivatives designs a 5–16-vertex polygon, then reanalyses it on three refined meshes with the shared hear_the_shape solver: achieved ratios, errors in cents with estimated uncertainty (not rigorous bounds), resolution warnings, optional numerical tuning of the fundamental in Hz. not_achieved is a bounded-search result, never an impossibility proof. Ideal membrane only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNoDefault 1. Same seed, same drum.
verticesNoPolygon vertices, default 10.
wave_speedNom/s, √(tension/areal density).
target_ratiosYesFrequency ratios f2/f1, f3/f1, … of the lowest modes, ascending (e.g. [1.25, 1.5] for a just major triad).
fundamental_hzNoWith wave_speed: scale the drum so its fundamental sounds at this frequency.
max_evaluationsNoSearch budget in finite-element evaluations, default 300.
tolerance_centsNoSuccess when |error| + uncertainty ≤ tolerance for every ratio; default 5 cents.
include_mode_shapesNoAdds computed mode shapes from the shared forward solver (≤1024 triangles, full-precision coordinates) for visualization.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesYes
engineYes
methodYes
searchYes
matchesYes
polygonYes
verdictYes
statementYes
elapsed_msYes
provenanceYes
assumptionsYes
feasibilityYes
verificationYes
fundamental_hzYes
contract_versionYes
fundamental_noteYes
worst_cents_errorYes
resolution_warningYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only assert readOnly/idempotent/no-side-effects, and the description adds far more: the mathematical theorems that produce proven_impossible, the multi-start L-BFGS + FEM shape-derivative method, 5-16 vertex design space, three-mesh reanalysis, uncertainty being estimates 'not rigorous bounds,' and that not_achieved is 'never an impossibility proof.' The stated 'ideal membrane only' assumption and resolution warnings are exactly the behavioral caveats an agent needs.

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?

Purpose is front-loaded and nearly every clause carries necessary information for a genuinely complex inverse-geometry tool, so the length is warranted. However, it is delivered as one dense run-on paragraph with no grouping, which costs some readability.

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?

Given an output schema already exists, the description need not restate return values, and instead goes beyond by explaining the epistemic status of each outcome (proof vs. bounded search), the idealization assumptions, and uncertainty limits. For a tool of this mathematical complexity, nothing an agent needs to call it correctly is missing.

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 coverage is 100% and the schema already defines tolerance_cents semantics ('success when |error| + uncertainty ≤ tolerance'), the 5-16 vertex range, and every other parameter. The description restates the vertex range and tolerance-based acceptance rather than adding new parameter meaning, so it sits at the documented baseline for full schema coverage.

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 first sentence states a precise verb and resource: 'design a polygonal drumhead whose lowest tones play requested frequency ratios,' with concrete examples (fifth, triad, pentatonic scale). It also implicitly distinguishes itself from the sibling hear_the_shape by naming it as the shared forward solver reused for verification, so an agent can separate the inverse-design tool from the analysis tool.

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?

Usage is implied rather than stated: the description clarifies the relationship to hear_the_shape (this tool designs, then reanalyses with the forward solver) but never gives an explicit 'use this when / use hear_the_shape instead when' rule or states prerequisites. It does define outcome conditions (proven_impossible vs. not_achieved), which helps set expectations but is not routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources