Skip to main content
Glama

generate_property_test

Generate property-based tests (fast-check, Hypothesis, QuickCheck, jqwik) from real invariants: idempotent, preserves-length, sorted, permutation, commutative, associative, round-trip, deterministic, never-throws, non-negative; generators typed by inputType

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": {
      "functionName": "<functionName>",
      "library": "<library>"
    },
    "name": "generate_property_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
libraryYes
runtimeNo
inputTypeNoType of the function's input (default array<integer>)
modulePathNoImport path of the function (default ../src/<functionName>)
propertiesNoInvariants: idempotent, preserves-length, sorted, permutation, commutative, associative, round-trip, deterministic, never-throws, non-negative
functionNameYes
inverseFunctionNoFor round-trip: the inverse, e.g. decode for encode

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / inputType
      Added value: +{
      +  "description": "Type of the function's input (default array<integer>)",
      +  "enum": [
      +    "integer",
      +    "number",
      +    "string",
      +    "boolean",
      +    "array<integer>",
      +    "array<number>",
      +    "array<string>"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / inverseFunction
      Added value: +{
      +  "description": "For round-trip: the inverse, e.g. decode for encode",
      +  "type": "string"
      +}
    • addedInput schema / properties / modulePath
      Added value: +{
      +  "description": "Import path of the function (default ../src/<functionName>)",
      +  "type": "string"
      +}
    • addedInput schema / properties / properties / description
      Added value: +"Invariants: idempotent, preserves-length, sorted, permutation, commutative, associative, round-trip, deterministic, never-throws, non-negative"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses the supported frameworks and the invariant set, which is genuine behavioral context, but says nothing about what the tool emits (test file vs snippet), where it writes, how unknown or conflicting invariants are handled, or whether library and runtime must be paired. For a code generator with no output schema, that is a moderate gap.

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?

A single front-loaded sentence with the verb, the frameworks, and the invariants in that order; nothing is wasted. It is dense to the point of being a semicolon-chained run-on, which slightly hurts scannability.

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?

With 7 parameters, no annotations, and no output schema, the definition should say more about the emitted artifact and about the library/runtime pairing, plus the defaults already hinted at in the schema. The core purpose is clear, but behavior on the call's output side is left to inference.

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 57%. The description reinforces inputType ('generators typed by inputType') and repeats the properties enum, but adds no meaning for runtime, modulePath, inverseFunction, or functionName beyond the schema, and does not explain that library and runtime are likely paired choices. Baseline for partial 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?

States a specific verb and resource ('Generate property-based tests') plus the four target frameworks and the invariant vocabulary it consumes. That framing cleanly separates it from the many example-based generators in the sibling list (generate_pytest_test, generate_jest_test), so an agent can route to it without opening the schema.

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 phrase 'from real invariants' implies the precondition that a property/invariant exists to encode, but nothing states when to prefer this over the sibling unit-test generators, nor when-not to use it (e.g., example-based expectations). Usage is inferable but not stated.

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.