Skip to main content
Glama
Simplicity MCP Server

Simplicity MCP Server

simplicity_construct

Construct a Simplicity expression with optional context to prepare smart-contract code for compilation or deployment on Liquid/Elements.

Instructions

Construct a Simplicity expression

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": {
      "expression": "<expression>"
    },
    "name": "simplicity_construct"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoOptional context for the expression
expressionYesThe Simplicity expression to construct

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

D1.9/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure and delivers none. It says nothing about whether the expression is validated, what the result is, whether an invalid expression errors or returns a partial result, or what 'context' affects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence contains no wasted words in a literal sense, but it is under-specified rather than concise. Brevity here removes information an agent needs rather than trimming redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with a nested context object, no annotations, and no output schema, the description omits everything needed to call it correctly: input format for the expression, the role of context, and what success or failure looks like.

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 are documented in the schema, so the baseline is 3. However, the schema text is itself circular ('The Simplicity expression to construct'), and the description adds no syntax, format, or example for the expression string or the nested context object.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Construct a Simplicity expression' essentially restates the tool name with no elaboration. It does not clarify what 'construct' means here (build an AST, assemble a program object, produce a serialized form) nor how it differs from obvious siblings like simplicity_compile_source, simplicity_compile_file, or simplicity_encode.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. An agent looking at a family of compile/encode/analyze tools has no basis in this description for choosing this one over any sibling.

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