Skip to main content
Glama
Canton MCP Server

Canton MCP Server

by JohnLilic

canton_list_active_contracts

Lists active contracts on the Canton ledger, optionally filtered by template ID or party, and returns contract IDs, templates, payloads, signatories, and observers.

Instructions

List active contracts on the Canton ledger, optionally filtered by template ID and/or party. Returns contract ID, template, payload, signatories, and observers.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "canton_list_active_contracts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results to return (default 50)
partyNoFilter by party ID or display name
template_idNoFilter by Daml template ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does helpfully enumerate the returned fields (contract ID, template, payload, signatories, observers), but it never states that this is a non-mutating read, says nothing about result truncation or how 'active' is determined, and leaves pagination behavior to the schema's limit property.

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

Conciseness5/5

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

Two sentences with zero filler; the purpose and filters come first and the return shape second. Nothing is repeated or padded.

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

Completeness4/5

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

For a simple, all-optional-parameter read tool with no output schema, the description covers intent, filters, and return fields, which is close to complete. The remaining minor gap is that it does not characterize the active-contract set or pagination behavior, but the fully documented schema mitigates that.

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%, so all three parameters (limit, party, template_id) are already documented in the schema, giving a baseline of 3. The description restates the template ID and party filters but adds no format, matching, or combination semantics beyond what the schema provides, and omits limit entirely.

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 description gives a specific verb and resource ('List active contracts on the Canton ledger') plus the optional filter axes, which is enough to separate it from canton_get_contract (singular retrieval) and canton_list_parties. It stops short of naming a sibling or stating an explicit boundary, so a 4 rather than a 5.

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

Usage Guidelines3/5

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

Usage is only implied by the purpose statement: an agent can infer 'use this to enumerate active contracts'. There is no stated when-to-use vs canton_get_contract or canton_search_transactions, and no exclusions or prerequisites, so this is minimum-viable rather than explicit guidance.

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