Skip to main content
Glama

mt_travel_issue_vc

Destructive

Issue a signed W3C TravelAgentCredential that authorizes an AI agent to book travel for a principal with enforced segment permissions and spend limits.

Instructions

Issue a TravelAgentCredential (W3C Verifiable Credential) for a booking agent.

Creates a cryptographically signed credential that authorizes an AI agent to book travel on behalf of a principal (company/human), with enforced segment permissions and spend limits.

Args: agent_did: DID of the travel agent (e.g. "did:base:0x...") principal_did: DID of the authorizing entity (e.g. "did:base:acme-corp") segments: Comma-separated allowed segments (e.g. "hotel,flight,car_rental") spend_limit: Maximum spend amount per booking currency: Currency code (e.g. "USDC") traveler_name: Name of the authorized traveler (optional) 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>",
      "principal_did": "<principal_did>",
      "segments": "<segments>",
      "spend_limit": "<spend_limit>",
      "currency": "<currency>"
    },
    "name": "mt_travel_issue_vc"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyYesCurrency code (e.g. "USDC")
segmentsYesComma-separated allowed segments (e.g. "hotel,flight,car_rental")
agent_didYesDID of the travel agent (e.g. "did:base:0x...")
spend_limitYesMaximum spend amount per booking
principal_didYesDID of the authorizing entity (e.g. "did:base:acme-corp")
traveler_nameNoName of the authorized traveler (optional)
validity_daysNoNumber of days the credential is valid (default 30)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.3.1
    • addedInput schema / properties / agent_did / description
      Added value: +"DID of the travel agent (e.g. \"did:base:0x...\")"
    • addedInput schema / properties / currency / description
      Added value: +"Currency code (e.g. \"USDC\")"
    • addedInput schema / properties / principal_did / description
      Added value: +"DID of the authorizing entity (e.g. \"did:base:acme-corp\")"
    • addedInput schema / properties / segments / description
      Added value: +"Comma-separated allowed segments (e.g. \"hotel,flight,car_rental\")"
    • addedInput schema / properties / spend_limit / description
      Added value: +"Maximum spend amount per booking"
    • addedInput schema / properties / traveler_name / description
      Added value: +"Name of the authorized traveler (optional)"
    • addedInput schema / properties / validity_days / description
      Added value: +"Number of days the credential is valid (default 30)"
  2. First observedv1.2.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=true, so the safety profile is covered. The description adds useful context about what the credential enforces (segment permissions, spend limits, cryptographic signing), but it does not explain the non-idempotent/destructive nature — e.g. whether re-issuing supersedes or invalidates a prior credential, or whether issuance is revocable.

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 opening two sentences are well front-loaded and informative, but the Args section duplicates the input schema line-for-line, adding length without new information. Roughly half the text is redundant with structured data.

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

Completeness3/5

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

An output schema exists, so return values need not be described, and all seven parameters are covered. However, for a destructive, non-idempotent credential-issuance tool with five required parameters, the description omits issuer authorization requirements, revocation/lifecycle behavior, and any failure modes — gaps that matter for correct invocation.

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 schema already documents every parameter. The Args block restates the schema descriptions almost verbatim (DID examples, comma-separated segments, currency code, default 30 days) without adding format constraints, validation rules, or interaction between fields such as spend_limit and currency.

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?

The first sentence names a specific verb and resource ('Issue a TravelAgentCredential (W3C Verifiable Credential) for a booking agent') and the second clarifies the effect: a signed credential authorizing an AI agent to book travel with enforced segment permissions and spend limits. It is clearly distinguishable from siblings like mt_shopping_issue_vc or mt_skill_issue_vc by the travel-booking domain, though it never explicitly contrasts itself with them.

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 booking agent', 'on behalf of a principal'), but there is no explicit when-to-use/when-not guidance, no mention of prerequisites such as who is permitted to issue, and no pointer to mt_travel_verify or the sibling issue tools as alternatives.

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