Skip to main content
Glama

mt_shopping_issue_vc

Destructive

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

NameRequiredDescriptionDefault
currencyYesCurrency code (e.g. "USDC", "USD")
agent_didYesDID of the shopping agent (e.g. "did:moltrust:agent123")
human_didYesDID of the authorizing human (e.g. "did:moltrust:human456")
categoriesYesComma-separated allowed categories (e.g. "electronics,books")
spend_limitYesMaximum spend amount per transaction
validity_daysNoNumber of days the credential is valid (default 30)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.3.1
    • addedInput schema / properties / agent_did / description
      Added value: +"DID of the shopping agent (e.g. \"did:moltrust:agent123\")"
    • addedInput schema / properties / categories / description
      Added value: +"Comma-separated allowed categories (e.g. \"electronics,books\")"
    • addedInput schema / properties / currency / description
      Added value: +"Currency code (e.g. \"USDC\", \"USD\")"
    • addedInput schema / properties / human_did / description
      Added value: +"DID of the authorizing human (e.g. \"did:moltrust:human456\")"
    • addedInput schema / properties / spend_limit / description
      Added value: +"Maximum spend amount per transaction"
    • addedInput schema / properties / validity_days / description
      Added value: +"Number of days the credential is valid (default 30)"
  2. First observedv1.2.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-idempotent, destructive operation, so the burden is lower; the description adds real context by specifying that the output is a cryptographically signed credential with enforced spend limits and a validity window. It does not explain the consequence of the non-idempotent flag (e.g. that repeated calls mint additional credentials) or revocation behavior, which is the main remaining gap.

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-loaded with the key purpose and the enforcement clause before the parameter list, so an agent can decide quickly. The Args block is somewhat redundant against a fully described schema, costing a little space but not harming clarity.

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?

Output schema exists, so return values need not be explained, and the description covers the artifact type, authorization semantics, and validity window. For a 6-parameter mutation it could still say what happens to existing credentials or whether issuance requires the human to approve first.

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 the Args block repeats the schema descriptions nearly verbatim, adding only the 30-day default already present in the schema. Baseline 3 is appropriate since the schema does the heavy lifting.

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 ('Issue a BuyerAgentCredential (W3C Verifiable Credential) for a shopping agent') and the domain qualifier distinguishes it from the travel/skill issuance siblings. The follow-up sentence clarifies what artifact is produced and that it carries spend limits.

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 implied by the domain ('for a shopping agent') and the spend-limit framing tells the agent this is the purchase-authorization path, but there is no explicit when-to-use/when-not guidance or reference to alternatives such as mt_shopping_verify or the travel/skill issuance tools.

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