Skip to main content
Glama
Canton Ledgerview MCP Server

Canton Ledgerview MCP Server

by stratoslab

analyze_daml_safety

Validates DAML code against Canton Safety Gates by checking required safety markers to surface safety issues before deployment.

Instructions

Analyzes DAML code against the Canton Safety Gates. This simulates the 'intelligent' reasoning by checking for specific safety markers.

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": {
      "code": "<code>"
    },
    "name": "analyze_daml_safety"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 does not meet it: it does not state whether the supplied code is executed or merely parsed, whether the analysis is deterministic, what permissions or limits apply, or what a failure looks like. Calling it a simulation of 'intelligent' reasoning actively obscures whether the result is a hard verification or a heuristic guess.

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

Conciseness3/5

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

Two sentences is appropriately short and the purpose is front-loaded, but the second sentence is vague filler that spends words on 'intelligent reasoning' without conveying anything actionable about the check being performed.

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 output schema exists, so return values need not be explained, and with only one input the surface is small. Still, for a safety-validation tool the definition should say what class of issues it detects and whether a pass is authoritative, and it leaves both open.

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?

One parameter with 0% schema description coverage, so the description must compensate. Saying it analyzes 'DAML code' does implicitly tell the agent that the `code` argument is DAML source rather than a file path or project reference, but it adds nothing about format, size limits, or completeness requirements.

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?

The first sentence gives a concrete verb+resource: it analyzes DAML code against the 'Canton Safety Gates', which no listed sibling does. The second sentence ('simulates the intelligent reasoning by checking for specific safety markers') is vague — it never says which gates or markers — but the overall intent is discernible.

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 call this versus alternatives (e.g., generate_canton_deployment_script or get_project_summary), no prerequisites, and no stated conditions or exclusions. The agent must infer that this is a pre-deployment validation step.

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