Skip to main content
Glama

create_credential_session

Create a credential vault session for a merchant and return a time-limited URL where customers can store login credentials for saved-credential checkout.

Instructions

Creates a credential vault session for a merchant and returns a secure URL where the customer can store their login credentials for that merchant. Stored credentials are used by checkouts created with options.useSavedCredentialToLogin = true. The URL is valid for a limited time (expiresIn, in minutes). REQUIRED FOLLOW-UP: immediately present the returned url as a clickable link so the customer can open it.

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": {
      "merchantDomain": "<merchantDomain>",
      "email": "<email>"
    },
    "name": "create_credential_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesCustomer's email address
merchantDomainYesMerchant website URL the credentials belong to e.g. 'https://saltiebeauty.com'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.6

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the key traits: a session is created, a time-limited URL is returned, and the agent must surface it as a clickable link. Gaps remain around permissions, idempotency, and whether creating a new session invalidates prior ones. The reference to 'expiresIn' is undefined anywhere in the schema, which is a small clarity defect.

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?

Three tight sentences that front-load purpose, then usage context, then the required follow-up. The only friction is the parenthetical '(expiresIn, in minutes)', which references a field that appears in neither the parameters nor a documented return shape, slightly interrupting an otherwise clean structure.

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?

For a two-parameter creation tool with no output schema, the description covers the return value (a URL with a limited lifetime) and the required agent action, which is the critical information. The unexplained expiresIn reference and absent notes on permissions or session reuse are the only remaining gaps.

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 coverage is 100%, so both parameters are already documented with formats and examples. The description adds only indirect meaning (the domain scopes which merchant the credentials belong to, the email identifies the customer) without new syntax or constraint detail, so the baseline 3 applies.

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 ('Creates a credential vault session for a merchant') and names the concrete artifact returned (a secure URL for storing login credentials). The scope is distinct from session tools like create_payment_session because the resource and outcome are explicitly credential storage, not payment.

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 real context for when the result matters: credentials are consumed by checkouts created with options.useSavedCredentialToLogin = true. It also mandates a follow-up action (present the URL immediately). It stops short of stating when not to use it or naming an alternative flow, so it is clear context rather than full routing guidance.

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