Skip to main content

list-keys

List all key/value records attached to an ECGrid system object across every visibility. A key is a named value attached to an object (mailbox, network, user, and others) — for example the ftp:status, ftp:loginname, or ftp:ipaddress setup keys on a mailbox. Use when the caller wants to enumerate or discover the keys on an object — for example "what keys are set on this mailbox" or "what is the FTP config for this network". To fetch one known key by name and visibility, use get-key. An empty result (count = 0) means the object has no keys — a successful outcome, not NOT_FOUND. Results are scoped to the caller's APIKey. Not cached — key values can expire and Session-scoped keys are short-lived.

Tool Name

connectivity_key_list-keys

Auth Level Required

Any (scoped to caller's APIKey)

Parameters

ParameterTypeRequiredDescription
request.systemObjectstringYesThe ECGrid system-object class whose keys to list. See enum table below. For (S)FTP setup keys this is usually Mailbox or Network. Pair with objectId to identify the specific object.
request.objectIdintegerYesThe numeric ID of the object named by systemObject, e.g. the mailbox ID when systemObject=Mailbox. Range 1–9223372036854775807 (int64). Example: 142. The root ID 0 is rejected as VALIDATION_ERROR.

systemObject Enum

ValueDescription
SystemGlobal system-level keys
UserKeys attached to a user record
NetworkKeys attached to a network
MailboxKeys attached to a mailbox (most common for (S)FTP setup keys)
EcgridIdKeys attached to an ECGrid ID / trading partner
InterconnectKeys attached to a partner interconnect rule
MigrationKeys attached to a migration record
ParcelKeys attached to a parcel/file record
InterchangeKeys attached to an interchange record
CarbonCopyKeys attached to a carbon copy rule
CallBackEventKeys attached to a callback event registration
As2Keys attached to an AS2 comm record
CommKeys attached to a comm (communications) record
GisbKeys attached to a GISB comm record
InterconnectNoteKeys attached to an interconnect note
PriceListKeys attached to a price list
ContractKeys attached to a contract record
InvoiceKeys attached to an invoice record

Response

Returns a count and a keys array; each element carries the key name, verbatim value, meta, visibility, created timestamp, and expiry.

{
"count": 3,
"keys": [
{
"key": "ftp:status",
"value": "Active",
"meta": "",
"visibility": "Private",
"created": "2025-01-10T08:00:00Z",
"expires": null
},
{
"key": "ftp:loginname",
"value": "acme_shipping_ftp",
"meta": "",
"visibility": "Private",
"created": "2025-01-10T08:00:00Z",
"expires": null
},
{
"key": "ftp:ipaddress",
"value": "203.0.113.45",
"meta": "",
"visibility": "Private",
"created": "2025-01-10T08:00:00Z",
"expires": null
}
]
}

Response Fields

FieldTypeDescription
countintegerTotal number of keys returned
keysarrayArray of key/value records
keys[].keystringThe key name — typically a dotted/namespaced string, e.g. ftp:loginname
keys[].valuestringThe verbatim stored value — not redacted, not masked
keys[].metastringOptional metadata string associated with the key
keys[].visibilitystringVisibility scope: Private, Shared, Public, or Session
keys[].createdstringISO 8601 timestamp when the key was created
keys[].expiresstring | nullISO 8601 timestamp when the key expires, or null if it does not expire

Example Call

{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "connectivity_key_list-keys",
"arguments": {
"request": {
"systemObject": "Mailbox",
"objectId": 142
}
}
}
}

Example Prompts

  • What FTP setup keys are on mailbox 142?
  • List all keys configured for network 7

See Also

  • Tools Overview — full list of available MCP tools
  • Authentication — how to authenticate with the ECGrid MCP Server
  • get-key — fetch a single key by its exact name and visibility