Skip to main content
Glama
stand-out-of-my-sun

Diogenes Context Compression, Code Patching & Deterministic Solver MCP

JSON Schema & Function Signature Boundary-Value Test Vector Generator

generate_boundary_test_vectors
Read-onlyIdempotent

Generate deterministic edge-case unit-test and fuzz vectors from JSON Schemas or function signatures, covering boundaries, equivalence partitions, and adversarial Unicode/null inputs.

Instructions

Synthesizes deterministic unit-test vectors from a JSON Schema or function signature covering valid equivalence partitions, numeric/length boundaries, and adversarial Unicode/null inputs. Use when generating exhaustive edge-case unit test payloads and fuzz vectors for an API endpoint or function; for healing and applying unified diffs or search/replace edits to source code, use apply_fuzzy_code_patch instead. Read-only edge call (32 KB, 60 RPM): accepts 'schema_or_signature_json' (with enum defaults), uses '?demo=true' or L402 (65 sats); HTTP 400 if invalid.

Input Schema

NameRequiredDescriptionDefault
vector_suite_profileNoTest generation coverage profile; defaults to 'equivalence_boundary_and_fuzz' when omitted.
schema_or_signature_jsonYesJSON Schema object or function parameter specification to generate test vectors for.

Output Schema

NameRequiredDescriptionDefault
boundary_edge_vectorsYesEdge payloads testing zero, negative, MAX_SAFE_INTEGER, and empty/max length boundaries.
total_vectors_generatedYesTotal number of deterministic test vectors produced.
valid_partition_vectorsYesValid happy-path payloads covering required and optional equivalence classes.
adversarial_fuzz_vectorsYesNegative test vectors testing missing required fields, wrong types, and Unicode/injection strings.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, yet the description adds material context beyond them: a 32 KB payload ceiling, a 60 RPM rate limit, the auth paths ('?demo=true' or L402 at 65 sats), and the HTTP 400 failure mode for invalid input. These are exactly the operational facts an agent needs and that annotations cannot express.

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 and the sibling exclusion are front-loaded, which is correct. The final sentence is a dense parenthetical cramming size, rate limit, auth, and error code together, so it is efficient but slightly overpacked rather than perfectly clean.

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?

With an output schema present, the description needn't describe return values, and it covers the remaining gaps an agent would care about: input size limit, throughput, payment/auth requirement, and failure behavior. Nothing needed to invoke the tool 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 description coverage is 100% and both parameters carry their own descriptions plus a default, so the schema already does the heavy lifting. The description only restates that 'schema_or_signature_json' accepts enum defaults, adding little semantic depth beyond the structured fields; baseline 3 applies.

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 ('Synthesizes') and a precise resource ('deterministic unit-test vectors from a JSON Schema or function signature'), and enumerates the coverage classes (equivalence partitions, numeric/length boundaries, adversarial Unicode/null). It also explicitly distinguishes itself from the sibling apply_fuzzy_code_patch, so an agent can route without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use clause ('generating exhaustive edge-case unit test payloads and fuzz vectors for an API endpoint or function') and a when-not-to-use clause that names the alternative tool ('for healing and applying unified diffs ... use apply_fuzzy_code_patch instead'). No inference required.

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