Skip to main content
Glama
@odatano/nightgate-mcp

@odatano/nightgate-mcp

Official
by ODATANO

mint_token

Mints a shielded token with a custom name on a token-factory deployment, handling proof, signing, sponsor payment, and settlement status while keeping the caller seed local.

Instructions

Mint a shielded token with a name of your own on a token-factory deployment. This process is the issuer: its issuer secret derives from the caller seed, the mint is built, proven and signed here, and a sponsor pays; the seed never leaves this process. The factory has to be on the sponsor's contract list and mint on its circuit list. The same name from another issuer is another token. The answer names the token ({ tokenType, domain, issuerKey }); a landed mint makes the type known to the sponsor (swaps, offer board). The recipient defaults to this wallet (get_attester_identity); another wallet takes both of its keys. The tool waits until the job settled (about 1 minute) and returns { status, txHash, transactionHash, result }. failed: next says what to do. If the call was cut off or came back pending, run it again with the same arguments: it picks up the job it started and submits nothing new (the answer says deduplicated). With an idempotencyKey that also holds after a restart of this server. A second, separate call with the same arguments needs a new idempotencyKey.

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": {
      "contractAddress": "<contractAddress>",
      "name": "<name>",
      "amount": "<amount>"
    },
    "name": "mint_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesToken name, at most 32 UTF-8 bytes; with the issuer it names the token type
amountYesAtoms to mint; a decimal string is exact
idempotencyKeyNoDedupes retries
contractAddressYesA token-factory deployment
recipientCoinPublicKeyNoZswap coin public key of the receiving wallet (64 hex); default this wallet's own
recipientEncryptionPublicKeyNoThe receiving wallet's encryption public key (64 hex); required with a recipient other than this wallet

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.3

TDQS

A4.2/5.0
Behavior3/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 it does this well: it discloses that the issuer secret derives from the caller seed and never leaves the process, that a sponsor pays, that the tool blocks until settlement (~1 minute), and the return shape { status, txHash, transactionHash, result }. That is substantial disclosure and only minor gaps (cost/amount implications of sponsoring, failure modes beyond 'next') keep it below the top end of the range.

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?

Front-loads the core action and prerequisites, then proceeds to return values and retry semantics in a logical order. The telegraphic style ('failed: `next` says what to do.') is dense but every sentence carries real information; the length is on the long side, though not padded.

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

Completeness5/5

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

For a six-parameter, mutating, multi-party flow with no annotations and no output schema, the description covers prerequisites, the caller-seed/issuer model, sponsor payment, default vs. explicit recipient, blocking behavior, return shape, and idempotent retry semantics. Nothing an agent needs in order to call it correctly appears missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all six parameters; the description adds meaning beyond it by explaining that the recipient defaults to this wallet and that another wallet requires both of its keys, and by characterizing idempotencyKey as deduplicating retries even across a server restart. This extra semantics justifies above baseline.

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+resource ('Mint a shielded token with a name of your own on a token-factory deployment') and immediately clarifies the scope with 'The same name from another issuer is another token.' This lets an agent distinguish it from burn_token, derive_token_type, and send_token without opening other schemas.

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

Usage Guidelines4/5

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

Gives concrete preconditions (factory must be on the sponsor's contract list and mint on its circuit list) and explicit retry guidance: rerun with identical arguments if cut off or pending, and use a fresh idempotencyKey for a genuinely new call. It never explicitly contrasts itself with sibling tools, but the when/how conditions are clear and actionable.

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