Add an agent
Add agent asks, in order:- Where does this agent run? Any A2A URL, or a hosted agent on Amazon Bedrock AgentCore, Microsoft Foundry or Google Vertex AI Agent Engine. For any URL, the Agent URL is the agent’s base URL or its card URL. A hosted agent is named by its cloud’s own identifiers instead: see Hosted agents.
- How TrustGate signs in to this agent, for a hosted agent, whose card can be read only with a credential.
- The card. TrustGate reads it (Reading the card…) and shows its provider, card URL, the versions it offers, what it asks for, and its skills. An agent that offers neither JSON-RPC 0.3 nor 1.0 cannot be added.
- Settings. Name, A2A version (1.0 when the card offers it, otherwise 0.3), the sign-in for an agent at any URL, and Advanced.
Advanced
How TrustGate signs in
What the agent receives on every call. A caller’s own credential never reaches an agent.
The two as the user options through an identity provider need a caller that
identity provider signed in. A call with an API key, with or without an end user
named, gets
-32093. A refused exchange answers -32092
(identity_exchange_failed).
Hosted agents have their own options: AWS IAM, Microsoft Entra ID or a Google
service account. See Hosted agents.
Card pinning
For an Agent URL whose path ends in.json or /agentCard/v1.0, TrustGate
reads that URL. Otherwise it tries /.well-known/agent-card.json,
/.well-known/agent.json and /agentCard/v1.0 under it, in that order, and keeps
the first JSON object. Reads go through the gateway’s outbound network guard, with
10 seconds in total and 1 MiB per response. The URL must be https; http is
accepted only where the gateway allows outbound calls to private networks.
The card must have a name and offer the chosen version over JSON-RPC:
- 0.3:
urlwith aprotocolVersionstarting with0.3(or none), or anadditionalInterfacesentry withtransport: "JSONRPC". - 1.0: a
supportedInterfacesentry withprotocolBinding: "JSONRPC"and aprotocolVersionstarting with1.0.
sha256: over the card without signatures, with keys sorted.
Check for changes
Editing an agent re-reads its card only when Change URL (or Change location) or the A2A version changes. To take a new card from the same place, open the agent and choose Check for changes. Either the card has not changed since it was pinned, or the panel lists what did: skills added and removed, the endpoint, security, and other fields. Clients keep seeing the pinned card until you approve. Approve new card pins the card you reviewed. Keep current leaves the pinned one.
An agent cannot move to another provider. To run it somewhere else, add a new
agent.
From the API
The Admin API does the same in four calls.1
Preview the card
Nothing is written. Credentials in the body are used for this read only.
2
Register the agent
The response adds the read-only
resolved_card_url, protocol_version,
endpoint, card, card_digest and card_pinned_at. Secrets are encrypted at
rest and masked in responses.3
Bind it to an application
Create a consumer of type
A2A with the agent among its registries, and attach a
key. An A2A consumer takes only agents, and an agent binds only to an A2A
consumer.4
Check for changes, then approve
refresh writes nothing. approve pins the card only if the live card still has
the digest you send: 200 pinned, 409 the live card has another digest, 422
the entry is not an agent or the new card no longer offers the pinned version.