Skip to main content
Glama

setProgramSeed

Sets a Noisemaker DSL program's seed and returns the seed plus the program with its seed directive written or replaced for deterministic rendering.

Instructions

Set a Noisemaker DSL program's seed and return the seed and the program with its seed directive written or replaced. The whole program comes back as the engine's unparser writes it: comments before the search directive are dropped, and literal values are written as compiled, while random calls stay as written. Built-in effects only. Needs a Noisemaker 2 renderer.

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": {
      "dsl": "<dsl>",
      "seed": "<seed>"
    },
    "name": "setProgramSeed"
  }
}

Input Schema

NameRequiredDescriptionDefault
dslYesNoisemaker DSL program
seedYesProgram seed, a whole number from 0 to 4294967295

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description does substantial work: it discloses that the program is re-emitted by the unparser, that comments before the (search/seed) directive are dropped, that literals are written as compiled, and that random calls are preserved. It still leaves open failure modes (invalid DSL, unsupported effects) and whether the operation is idempotent.

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 action and return value, then the serialization caveats, then the environment constraints — a sensible ordering with no filler. Minor friction: 'comments before the search directive' appears to mean the seed directive, which introduces ambiguity in an otherwise precise sentence.

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?

There is no output schema and no annotations, so the description must cover both return shape and behavior, and it does: it names the two returned values and explains how the returned program text is normalized. Remaining gaps are error behavior and the exact directive name being replaced.

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%, so both dsl and seed are already documented with types, ranges, and the 0-4294967295 bound. The description adds the useful semantic note that the seed is written or replaces an existing seed directive in the source, but no further syntax or format detail beyond the schema.

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?

States a specific verb and resource ('Set a Noisemaker DSL program's seed') and adds the return contract ('return the seed and the program with its seed directive written or replaced'). It does not name the closely related siblings getProgramSeed or reseedProgram, so the boundary with them must be inferred from their names alone.

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?

Prerequisites are stated clearly ('Built-in effects only', 'Needs a Noisemaker 2 renderer'), which tells the agent when the call is valid. However, there is no explicit guidance on when to use this versus getProgramSeed (read) or reseedProgram, nor on when not to use it.

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