Skip to main content
Glama
Simplicity MCP Server

Simplicity MCP Server

simplicity_decode

Decode hex or base64 data into a Simplicity program to inspect or use it in smart-contract workflows.

Instructions

Decode bytes to a Simplicity program

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": {
      "data": "<data>"
    },
    "name": "simplicity_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesThe encoded data to decode
formatNoInput format (default: hex)

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?

No annotations are supplied, so the description carries the full burden, yet it says nothing about whether this is a pure/local operation, how invalid or non-Simplicity input is handled, or what form the decoded program takes. For a tool with zero annotation coverage, that leaves the agent guessing about behavior beyond the input transformation.

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 no filler or redundancy; the verb and both endpoints of the transformation are stated immediately. It is efficient, though its brevity borders on under-specification rather than being a model of structured clarity.

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

Completeness2/5

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

The tool is structurally simple (two params, one required, one enum), but with no output schema the description should say what a decoded program looks like in the response (text, JSON, disassembly) and it does not. Combined with no disambiguation from simplicity_decode_program, an agent lacks enough context to call this confidently in the right situations.

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%: both 'data' and the 'format' enum with its hex default are documented in the schema, including the accepted values. The description adds no further meaning about encoding expectations or size limits, so the baseline 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 (decode) and resource (bytes to a Simplicity program), so the transformation is unambiguous. However, it does nothing to distinguish itself from near-identical siblings such as simplicity_decode_program or decode_simplicity_transaction, which an agent could easily confuse it with.

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 guidance on when to use this tool versus the many other decode/analyze siblings, and no mention of the inverse operation (simplicity_encode) or any prerequisite/context. An agent must infer the selection criteria entirely from the name and one-line purpose.

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