Skip to main content

get-key

Fetch a single ECGrid key/value record by its exact key name, scoped to one system object and one visibility. A key is a named value attached to an ECGrid object (mailbox, network, user, and others) — for example the ftp:status or ftp:loginname setup keys on a mailbox. Use when the caller already knows the key name and its visibility — for example from a previous list-keys result — and wants just that value. To enumerate all keys on an object and discover their names and visibility, use list-keys first. Returns NOT_FOUND when no key matches the name within that scope and visibility. 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_get-key

Auth Level Required

Any (scoped to caller's APIKey)

Parameters

ParameterTypeRequiredDescription
request.systemObjectstringYesThe ECGrid system-object class the key is attached to. 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.
request.keystringYesThe exact key name to fetch — typically a dotted/namespaced string, e.g. ftp:status. 1–512 characters. Use list-keys to discover which keys exist on an object before guessing this value.
request.visibilitystringYesThe visibility scope to read the key from. One of: Private, Shared, Public, Session. The backend looks the key up within a single visibility scope — it must match the key's actual visibility. Use list-keys first to see each key's visibility.

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

visibility Enum

ValueDescription
PrivateVisible only to the owning network/mailbox
SharedVisible to the owning network/mailbox and its trading partners
PublicVisible to any authenticated caller
SessionShort-lived session-scoped value

Response

Returns the key record: name, verbatim value (not redacted), meta, visibility, created timestamp, and expiry.

{
"key": "ftp:loginname",
"value": "acme_shipping_ftp",
"meta": "",
"visibility": "Private",
"created": "2025-01-10T08:00:00Z",
"expires": null
}

Response Fields

FieldTypeDescription
keystringThe key name (matches the requested key)
valuestringThe verbatim stored value — not redacted, not masked
metastringOptional metadata string associated with the key
visibilitystringVisibility scope: Private, Shared, Public, or Session
createdstringISO 8601 timestamp when the key was created
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_get-key",
"arguments": {
"request": {
"systemObject": "Mailbox",
"objectId": 142,
"key": "ftp:loginname",
"visibility": "Private"
}
}
}
}

Example Prompts

  • What is the FTP username stored for mailbox 142?
  • Fetch the ftp:loginname Private key on mailbox 142

See Also

  • Tools Overview — full list of available MCP tools
  • Authentication — how to authenticate with the ECGrid MCP Server
  • list-keys — enumerate all keys on an object to discover their names and visibility