Skip to main content
Glama

moltrust_credits

Destructive

Manage agent credits by checking balance, viewing pricing, transferring credits, and reviewing transaction history.

Instructions

Manage MolTrust credits: check balance, view pricing, transfer credits, or view transaction history.

Args: action: One of "balance", "pricing", "transfer", or "transactions" did: Agent DID (required for "balance" and "transactions") to_did: Recipient DID (required for "transfer") amount: Number of credits to transfer (required for "transfer", must be >= 1) reference: Optional reference string for transfers limit: Max transactions to return (default 20, for "transactions") offset: Pagination offset (default 0, for "transactions")

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": {
      "action": "<action>"
    },
    "name": "moltrust_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault
didNoAgent DID (required for "balance" and "transactions"), e.g. did:moltrust:a1b2c3d4e5f60718
limitNoMax transactions to return (default 20, for "transactions")
actionYesOne of "balance", "pricing", "transfer", or "transactions"
amountNoNumber of credits to transfer (required for "transfer", must be >= 1)
offsetNoPagination offset (default 0, for "transactions")
to_didNoRecipient DID (required for "transfer"), e.g. did:moltrust:a1b2c3d4e5f60718
referenceNoOptional reference string for transfers

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.3.1
    • addedInput schema / properties / action / description
      Added value: +"One of \"balance\", \"pricing\", \"transfer\", or \"transactions\""
    • addedInput schema / properties / amount / description
      Added value: +"Number of credits to transfer (required for \"transfer\", must be >= 1)"
    • addedInput schema / properties / did / description
      Added value: +"Agent DID (required for \"balance\" and \"transactions\"), e.g. did:moltrust:a1b2c3d4e5f60718"
    • addedInput schema / properties / limit / description
      Added value: +"Max transactions to return (default 20, for \"transactions\")"
    • addedInput schema / properties / offset / description
      Added value: +"Pagination offset (default 0, for \"transactions\")"
    • addedInput schema / properties / reference / description
      Added value: +"Optional reference string for transfers"
    • addedInput schema / properties / to_did / description
      Added value: +"Recipient DID (required for \"transfer\"), e.g. did:moltrust:a1b2c3d4e5f60718"
  2. First observedv1.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false, and the description's inclusion of 'transfer' is consistent with that destructive profile. It adds the concrete constraint that amount must be >= 1, but does not say whether a transfer is reversible, whether credits are debited immediately, or that the read-only actions (balance, pricing) share a tool flagged as destructive — context an agent would want before invoking.

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?

The leading sentence is well front-loaded and gives the agent the operation set in one line. The subsequent seven-line Args block duplicates the input schema almost exactly, adding bulk without new information, which costs it credit on conciseness.

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?

With an output schema present, the description need not explain return values, and it does cover all seven parameters and the four action modes. What remains thin is behavioral context around the destructive transfer path and the read-only modes bundled under the same destructive annotation, but for a 7-param tool this is close to complete.

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 the Args block largely restates the schema verbatim, including the same default values and the same example DIDs. It does not add meaning beyond the schema, such as valid action ranges or what 'reference' is used for downstream; baseline 3 applies when the schema carries the load.

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?

Names a specific resource (MolTrust credits) and enumerates concrete operations: balance check, pricing lookup, transfer, and transaction history. The multi-action dispatch is immediately understandable, though the description never distinguishes this tool from the sibling moltrust_deposit_history, which plausibly overlaps with the 'transactions' action.

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?

The per-action parameter requirements ('did' required for balance/transactions, 'to_did'/'amount' required for transfer) give solid invocation guidance for each mode. However, there is no guidance on when to prefer this tool over alternatives such as moltrust_deposit_history, nor any stated prerequisites or preconditions for transferring credits.

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