Skip to main content
Glama
Canton MCP Server

Canton MCP Server

by JohnLilic

canton_get_contract

Retrieves a specific active Canton Network contract by contract ID, returning its full payload, signatories, observers, and metadata.

Instructions

Get a specific active contract by contract ID. Returns the full payload, signatories, observers, and metadata.

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": {
      "contract_id": "<contract_id>"
    },
    "name": "canton_get_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
contract_idYesThe contract ID to look up (e.g. '#1:0')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/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. It helpfully enumerates the return contents (payload, signatories, observers, metadata) and the word 'active' hints that archived contracts are out of scope, but it says nothing about behavior when the ID is not found, required permissions, or error responses.

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, zero filler, with the identity of the operation front-loaded and the return shape following. Every clause earns its place.

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 single-parameter read tool this is nearly complete; describing the returned fields usefully compensates for the absent output schema. The only shortfall is unspecified not-found or permission behavior, which is a minor gap for a simple lookup.

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 there is a single required parameter whose example ('#1:0') is already documented in the schema. The description's phrase 'by contract ID' adds no format or semantic detail beyond what the schema provides, so the baseline of 3 applies.

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

Purpose5/5

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

States a specific verb and resource ('Get a specific active contract by contract ID') plus the scoping qualifier 'active', which implicitly separates it from canton_list_active_contracts. An agent can tell this is a point lookup rather than a listing or search without opening the schema.

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: the tool is for when you already hold a contract ID. There is no explicit when-to-use or when-not guidance, and no named alternative such as canton_list_active_contracts or canton_search_transactions for the case where the ID is unknown.

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