Skip to main content
Glama

get_parameters_for_import

Retrieve the public wrapping key and import token needed to construct a secure import payload for TR-34 or key cryptogram, ensuring key-strength rules are met before importing keys.

Instructions

Call this before import_key when using TR-34 or KeyCryptogram — you need APC's public wrapping key and import token before constructing the import payload.

Key-strength rules enforced by APC (wrapping key strength ≥ working key strength): AES-128 (128-bit): RSA_3072 (~128-bit) or RSA_4096 (~140-bit) — both acceptable. AES-256 (256-bit): RSA of any size is too weak (~140-bit max for RSA_4096). Use ECC_NIST_P521 (~261-bit) — the only KEY_CRYPTOGRAM path for AES-256. TDES (112-bit): RSA_2048 (~112-bit) or higher.

For AES-256 keys (E0, E1, E2, E4, E6, D0 at 256-bit, M6 at 256-bit): wrapping_key_algorithm must be ECC_NIST_P521. Attempting RSA_2048/RSA_3072/RSA_4096 with an AES-256 key will fail. Alternative: use create_key (APC generates the key material — no import needed, but the key value is not externally known, so cross-system test vectors are not possible).

Args: key_material_type: KEY_CRYPTOGRAM, Tr34KeyBlock, Tr31KeyBlock, RootCertificatePublicKey, or TrustedCertificatePublicKey wrapping_key_algorithm: RSA_2048, RSA_3072, RSA_4096, or ECC_NIST_P521 (required for AES-256) reuse_last_generated_token: Reuse the existing import token and wrapping key certificate when one is still valid for the same key material type and algorithm, with at least 7 days of validity left. Default false, which mints a new token on every call. Set true when retrying, or when building an import payload across several steps, so the token does not change underneath you.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
key_material_typeYes
wrapping_key_algorithmYes
reuse_last_generated_tokenNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.2.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries full behavioral burden and delivers: APC-enforced key-strength validation rules, the failure mode ('Attempting RSA_2048/RSA_3072/RSA_4096 with an AES-256 key will fail'), and the side-effect semantics of the default token behavior ('Default false, which mints a new token on every call'). Only a precise response-format disclaimer is missing, but the return value is described at a useful level.

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?

The most critical instruction is front-loaded ('Call this before import_key'), followed by a scannable rules list and then argument details. It is long, but every section earns its place — the key-strength rules prevent a common invocation error given the schema's lack of enums. Slight redundancy between the AES-256 callout and the general rules list, but not wasteful.

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 3-parameter tool with no annotations, no output schema, and 0% schema description coverage, the description covers prerequisites, valid inputs, constraints, failure conditions, and the alternative path. The only meaningful gap is that the exact response shape is not specified (no output schema exists), so an agent must infer the field names of the returned wrapping key and import token for the subsequent import_key call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and no enums exist in the schema, yet the description fully compensates: it enumerates all accepted values for key_material_type (5 values) and wrapping_key_algorithm (4 values), ties algorithm choice to key-strength requirements, and explains the boolean's behavior with a concrete usage recommendation. Without this text, the tool would be uncallable correctly.

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 ('you need APC's public wrapping key and import token before constructing the import payload') and a precise calling relationship with a named sibling ('Call this before import_key'). It clearly distinguishes this from both import_key (which it feeds) and get_parameters_for_export (the export counterpart) without ambiguity.

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

Usage Guidelines5/5

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

Explicitly states when to use it ('Call this before import_key when using TR-34 or KeyCryptogram') and gives an explicit alternative with a decision condition ('Alternative: use create_key... no import needed, but the key value is not externally known'). An agent knows exactly when this tool is required and when to route elsewhere.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/J8k3/aws-payment-cryptography-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server