Skip to main content
Glama
Simplicity MCP Server

Simplicity MCP Server

simplicity_generate_example

Generate a working Simplicity smart contract example from a minimal, comparison, or assertion pattern for compiling and testing on Liquid/Elements.

Instructions

Generate a working Simplicity contract example based on a pattern (minimal, comparison, assertion)

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": {
      "pattern": "<pattern>"
    },
    "name": "simplicity_generate_example"
  }
}

Input Schema

NameRequiredDescriptionDefault
patternYesPattern to generate: minimal (basic program), comparison (using jets), assertion (with validation)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it discloses very little: "working" weakly implies the generated example compiles, but it doesn't say whether output is returned as source text, written to a file, or how it relates to the real contract state. No auth, side-effect, or failure-mode information is present.

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?

One front-loaded sentence with the verb and resource first. The parenthetical enum list is redundant with the schema and could be dropped, but there is no other waste.

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?

The tool is simple (one enum parameter) and has no output schema, so the description should clarify what is returned—source code, a snippet, or a saved file. That return-shape gap is the only meaningful omission for a tool of this complexity.

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 single enum parameter is already fully documented, including per-value meanings. The description merely restates the three enum values, adding no syntax or output-shaping detail beyond the schema, so the baseline of 3 applies.

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 ("Generate") and resource ("working Simplicity contract example") plus the pattern dimension that scopes the output. An agent can tell this is a code-scaffolding/generation tool rather than a retrieval tool, though it never explicitly distinguishes itself from siblings like helper_get_example_contract.

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

Usage Guidelines2/5

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

The description says what the tool produces but gives no guidance on when to choose it over helper_get_example_contract or helper_list_example_contracts, nor any preconditions (e.g., whether the Simplicity toolchain must be installed). The pattern names hint at use cases but no when/when-not statement is made.

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