mt_shopping_issue_vc
Issues a signed W3C Verifiable Credential that authorizes a shopping agent to purchase for a human with enforced spend limits and category restrictions.
Instructions
Issue a BuyerAgentCredential (W3C Verifiable Credential) for a shopping agent.
Creates a cryptographically signed credential that authorizes an AI agent to make purchases on behalf of a human, with enforced spend limits.
Args: agent_did: DID of the shopping agent (e.g. "did:moltrust:agent123") human_did: DID of the authorizing human (e.g. "did:moltrust:human456") spend_limit: Maximum spend amount per transaction currency: Currency code (e.g. "USDC", "USD") categories: Comma-separated allowed categories (e.g. "electronics,books") validity_days: Number of days the credential is valid (default 30)
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": {
"agent_did": "<agent_did>",
"human_did": "<human_did>",
"spend_limit": "<spend_limit>",
"currency": "<currency>",
"categories": "<categories>"
},
"name": "mt_shopping_issue_vc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | Currency code (e.g. "USDC", "USD") | |
| agent_did | Yes | DID of the shopping agent (e.g. "did:moltrust:agent123") | |
| human_did | Yes | DID of the authorizing human (e.g. "did:moltrust:human456") | |
| categories | Yes | Comma-separated allowed categories (e.g. "electronics,books") | |
| spend_limit | Yes | Maximum spend amount per transaction | |
| validity_days | No | Number of days the credential is valid (default 30) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |