Skip to main content
Glama
Payware MCP Server

Payware MCP Server

Official
by payware

payware_authentication_test_jwt

Read-onlyIdempotent

Test JWT token creation with a step-by-step breakdown of deterministic JSON serialization, SHA-256 hashing, and final JWT structure for Payware authentication.

Instructions

[Merchant] Test JWT token creation process with detailed step-by-step breakdown, showing deterministic JSON serialization, SHA-256 hash calculation, and final JWT structure

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "payware_authentication_test_jwt"
  }
}

Input Schema

NameRequiredDescriptionDefault
partnerIdNoPartner ID for JWT creation (defaults to environment)
useSandboxNoUse the sandbox key (default) or the production key
requestPayloadNoSample request payload to demonstrate SHA-256 hash calculation
showPrivateKeyNoWhether to show private key details (for debugging)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds useful content about what the operation actually does (serialization, hashing, JWT assembly), but does not disclose whether the resulting token is real and usable, whether it consumes credentials, or what the response looks like beyond the step list.

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?

A single front-loaded sentence that names the scope tag '[Merchant]' first and then lists the three demonstrated steps. It is dense but every clause carries information; minor overhead from the triple enumeration.

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?

With no output schema, the description does describe the return content at a high level (step-by-step breakdown). However, for a tool whose whole value is its diagnostic output, it omits whether the token is genuine, whether secrets are exposed, and what a caller gains from showPrivateKey — gaps an agent would want filled before invoking it.

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% with all four parameters documented, so the schema carries parameter meaning. The description mentions the JWT structure and hash demonstration but adds no syntax, defaults, or interaction details (e.g., how requestPayload feeds the hash) beyond the schema.

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 description gives a specific verb and resource ('Test JWT token creation process') and enumerates the artifacts it produces: deterministic JSON serialization, SHA-256 hash calculation, and final JWT structure. It is clearly a diagnostic/walkthrough tool rather than a plain token generator, though it never explicitly contrasts itself with the sibling payware_authentication_create_jwt_token.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The word 'Test' implies a diagnostic or educational use case, but there is no explicit statement of when to call this instead of create_jwt_token or validate_jwt, and no exclusions or prerequisites. The agent must infer routing from the name alone.

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

Deploy Server

Other Tools