O App Hub adiciona automaticamente metadados estendidos a alguns serviços e cargas de trabalho para melhorar a descoberta, a governança e a integração com outros sistemas. Uma chave exclusiva identifica cada esquema compatível e define a estrutura e os campos para um tipo específico de metadados. Para conferir esses metadados, consulte Ver esquemas de metadados estendidos.
apphub.googleapis.com/AgentProperties
Esse esquema é usado para descrever as propriedades de um agente de IA, permitindo que outros
sistemas o encontrem e entendam. Normalmente, ela é aplicada a cargas de trabalho que têm uma
propriedade de tipo funcional de
AGENT. O esquema é compatível com o
card de agente do Agent2Agent (A2A).
Definição do esquema
Veja a seguir o esquema para esse tipo de metadados no formato JSON.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "apphub.googleapis.com/AgentProperties",
"description": "The schema for apphub.googleapis.com/AgentProperties. Except for framework, the properties are derived from the A2A Agent Card.",
"type": "object",
"additionalProperties": false,
"properties": {
"displayName": {
"type": "string",
"description": "The display name of the agent."
},
"description": {
"type": "string",
"description": "The description of the agent."
},
"version": {
"type": "string",
"description": "Contains the version of the Agent."
},
"framework": {
"type": "string",
"description": "The agent framework used to develop the agent."
},
"agentCardUri": {
"type": "string",
"description": "The URI of the agent card for the agent."
},
"skills": {
"type": "array",
"description": "A list of skills the agent possesses.",
"items": {
"type": "object",
"title": "Skills",
"description": "Defines a skill for an agent.",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the agent's skill."
},
"name": {
"type": "string",
"description": "A human readable name for the agent's skill."
},
"description": {
"type": "string",
"description": "A description of the agent's skill."
},
"tags": {
"type": "array",
"description": "A set of keywords describing the skill's capabilities.",
"items": {
"type": "string"
}
},
"examples": {
"type": "array",
"description": "Example prompts or scenarios that this skill can handle.",
"items": {
"type": "string"
}
}
}
}
}
}
}
Descrições de campo
| Campo | Tipo | Descrição |
|---|---|---|
displayName |
string |
O nome de exibição do agente. |
description |
string |
A descrição do agente. |
version |
string |
A versão do agente. |
framework |
string |
O framework usado para desenvolver o agente. |
agentCardUri |
string |
O URI do card do agente. |
skills |
array |
Uma lista de habilidades que o agente possui. |
skills.id |
string |
Um identificador exclusivo para a habilidade do agente. |
skills.name |
string |
Um nome legível para a habilidade do agente. |
skills.description |
string |
Uma descrição da habilidade do agente. |
skills.tags |
array de string |
Um conjunto de palavras-chave que descrevem os recursos da habilidade. |
skills.examples |
array de string |
Exemplos de comandos ou cenários que essa habilidade pode processar. |
apphub.googleapis.com/McpServer
O esquema apphub.googleapis.com/McpServer define as propriedades de um servidor do Protocolo de Contexto de Modelo (MCP, na sigla em inglês) e as ferramentas que ele expõe. O App Hub
aplica esse esquema a serviços que têm uma propriedade de tipo funcional
de MCP_SERVER.
O esquema inclui declarações de endpoint de transporte e definições de ferramentas que
estão em conformidade com a especificação do MCP, incluindo dicas de comportamento em annotations
e dicas de política em _meta.
Definição do esquema
Veja a seguir o esquema para esse tipo de metadados no formato JSON.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "apphub.googleapis.com/McpServer",
"description": "The schema for apphub.googleapis.com/McpServer.",
"type": "object",
"additionalProperties": false,
"properties": {
"displayName": {
"type": "string",
"description": "The display name of the MCP Server."
},
"description": {
"type": "string",
"description": "The description of the MCP Server."
},
"interfaces": {
"type": "array",
"description": "The connection details for the MCP Server.",
"items": {
"$ref": "#/definitions/Interface"
}
},
"tools": {
"type": "array",
"description": "Tools provided by the MCP Server.",
"items": {
"$ref": "#/definitions/Tool"
}
}
},
"required": ["interfaces"],
"definitions": {
"Tool": {
"description": "Represents a single tool provided by an MCP Server.",
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Human-readable name of the tool."
},
"description": {
"type": "string",
"description": "Description of what the tool does."
},
"annotations": {
"$ref": "#/definitions/Tool.Annotations",
"description": "Annotations associated with the tool."
},
"_meta": {
"$ref": "#/definitions/Tool.Meta",
"description": "Protocol-level metadata conforming to MCP _meta."
}
}
},
"Tool.Annotations": {
"description": "Annotations describing the characteristics and behavior of a tool or operation.",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "A human-readable title or name for the tool or operation."
},
"destructiveHint": {
"type": "boolean",
"description": "Hint indicating if the operation can cause destructive changes."
},
"idempotentHint": {
"type": "boolean",
"description": "Hint indicating if the operation is idempotent (safe to retry)."
},
"openWorldHint": {
"type": "boolean",
"description": "Hint indicating if the operation assumes an open world."
},
"readOnlyHint": {
"type": "boolean",
"description": "Hint indicating if the operation is read-only."
}
}
},
"Tool.Meta": {
"type": "object",
"description": "Protocol-level tool metadata container conforming to MCP _meta.",
"additionalProperties": false,
"properties": {
"com.googleapis.iap/PolicyHints": {
"$ref": "#/definitions/Iap.PolicyHints",
"description": "IAP specific policy hints."
}
}
},
"Iap.PolicyHints": {
"type": "object",
"description": "IAP custom extensions to MCP policy hints.",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "#/definitions/Iap.Authorization",
"description": "Authorization configurations for the tool."
}
}
},
"Iap.Authorization": {
"type": "object",
"description": "Authorization configuration including Human-in-the-loop (HITL) settings.",
"additionalProperties": false,
"properties": {
"toolDisabled": {
"type": "boolean",
"description": "Indicates if the tool is disabled. Defaults to false when absent, which means the tool is enabled."
},
"hitlMode": {
"type": "string",
"description": "Human-in-the-loop (HITL) execution mode.",
"enum": [
"HITL_MODE_UNSPECIFIED",
"HITL_MODE_DISABLED",
"HITL_MODE_ALWAYS",
"HITL_MODE_IF_UNSAFE"
]
}
}
},
"Interface": {
"description": "Represents interface.",
"type": "object",
"additionalProperties": false,
"properties": {
"url": {
"type": "string",
"description": "The destination URL.",
"pattern": "^https?://"
},
"protocolBinding": {
"type": "string",
"description": "The protocol binding of the interface.",
"enum": [
"JSONRPC"
]
}
},
"required": ["url", "protocolBinding"]
}
}
}
Descrições de campo
| Campo | Tipo | Descrição |
|---|---|---|
displayName |
string |
O nome de exibição do servidor MCP. |
description |
string |
A descrição do servidor MCP. |
interfaces |
array |
Os detalhes de conexão do servidor MCP. |
interfaces.url |
string |
O URL do endpoint de destino da interface. |
interfaces.protocolBinding |
string |
A vinculação de protocolo da interface, por exemplo,
JSONRPC. |
tools |
array |
Ferramentas fornecidas pelo servidor MCP. |
tools.name |
string |
Nome legível por humanos da ferramenta. |
tools.description |
string |
Descrição do que a ferramenta faz. |
tools.annotations |
object |
Anotações padrão do MCP associadas à ferramenta. |
tools.annotations.title |
string |
Um título legível por humanos para a ferramenta. |
tools.annotations.readOnlyHint |
boolean |
Dica que indica se a ferramenta apenas recupera dados e não modifica o ambiente. |
tools.annotations.destructiveHint |
boolean |
Dica que indica se a operação pode causar mudanças destrutivas. |
tools.annotations.idempotentHint |
boolean |
Dica que indica se a operação é idempotente e segura para nova tentativa. |
tools.annotations.openWorldHint |
boolean |
Dica que indica se a operação interage com sistemas externos. |
tools._meta |
object |
Metadados no nível do protocolo em conformidade com a especificação _meta
do MCP. As chaves precisam seguir a notação de domínio reverso. |
tools._meta.com.googleapis.iap/PolicyHints |
object |
Dicas de política do Identity-Aware Proxy (IAP) para a ferramenta. |
tools._meta.com.googleapis.iap/PolicyHints.authorization
|
object |
Configuração de autorização e human-in-the-loop (HITL) para a ferramenta. |
tools._meta.com.googleapis.iap/PolicyHints.authorization.toolDisabled
|
boolean |
Indica se a ferramenta está desativada para invocação. Defina como
true para desativar a ferramenta. O padrão é false
quando omitido, o que significa que a ferramenta está ativada. |
tools._meta.com.googleapis.iap/PolicyHints.authorization.hitlMode
|
string |
Modo de execução human-in-the-loop (HITL). Os valores compatíveis são
HITL_MODE_UNSPECIFIED, HITL_MODE_DISABLED,
HITL_MODE_ALWAYS e
HITL_MODE_IF_UNSAFE. |
discoveryengine.googleapis.com/agentregistry/connector
O esquema discoveryengine.googleapis.com/agentregistry/connector define
os metadados do provedor para
os conectores de dados do Gemini Enterprise. Quando você
registra um servidor externo do Protocolo de Contexto de Modelo (MCP) por um
conector do Gemini Enterprise, o App Hub anexa esses metadados
estendidos ao recurso de serviço subjacente.
O Agent Registry mostra esses metadados no
mapa attributes do recurso de descoberta McpServer correspondente para que
os aplicativos cliente e os agentes de orquestração possam inspecionar as propriedades do conector,
como type, state e instanceUri.
Definição do esquema
Veja a seguir o esquema para esse tipo de metadados no formato JSON.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "discoveryengine.googleapis.com/agentregistry/connector",
"description": "Gemini Enterprise (Discovery Engine) connector metadata. Present on the McpServer of a resource backed by a Gemini Enterprise connector. Every field is optional.",
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"description": "The type of the Gemini Enterprise connector, as a lowercase hyphen-separated identifier: for example 'github', 'atlassian-rovo'. Instances of the same connector share a type; it identifies which external service the connector integrates with.",
"maxLength": 128
},
"version": {
"type": "string",
"description": "The version of the connector definition this instance was created from, for example '1.0'.",
"maxLength": 32
},
"state": {
"type": "string",
"description": "The provisioning state of the connector instance. Some possible values are: 'STATE_UNSPECIFIED', 'INITIALIZING', 'INITIALIZED', 'INITIALIZATION_FAILED', 'ACTIVE', 'RUNNING', 'FAILED', 'WARNING', 'UPDATING' or 'DELETING'.",
"maxLength": 64
},
"instanceUri": {
"type": "string",
"description": "The customer's own site, for connectors addressed per customer: for example 'https://acme.atlassian.net'. This is the tenant the connector reads from, and differs from the MCP endpoint in 'interfaces', which is the same for every customer of a given connector. Absent for connectors that address a single fixed endpoint.",
"maxLength": 512
},
"tenantId": {
"type": "string",
"description": "The identifier of the customer tenant within the external service, where the service requires one to address it.",
"maxLength": 128
},
"skills": {
"type": "array",
"description": "The Agent Registry skill revisions a Gemini Enterprise administrator added to this custom MCP connector, one entry per skill, at most five. Absent for other connectors and for custom MCP connectors without any.",
"maxItems": 5,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"skill": {
"type": "string",
"description": "The resource name of the skill, in the form 'projects/{project_number}/locations/{location}/skills/{skill}'.",
"minLength": 1,
"maxLength": 1024
},
"skillUid": {
"type": "string",
"description": "The 'uid' of the skill.",
"minLength": 1,
"maxLength": 128
},
"revision": {
"type": "string",
"description": "The resource name of the skill revision, in the form 'projects/{project_number}/locations/{location}/skills/{skill}/revisions/{revision}'.",
"minLength": 1,
"maxLength": 1024
},
"revisionUid": {
"type": "string",
"description": "The 'uid' of the skill revision.",
"minLength": 1,
"maxLength": 128
},
"sha256": {
"type": "string",
"description": "The SHA-256 digest of the skill revision's payload, as 64 lowercase hexadecimal characters.",
"pattern": "^[0-9a-f]{64}$"
}
},
"required": ["skill", "skillUid", "revision", "revisionUid", "sha256"]
}
}
}
}
Descrições de campo
| Campo | Tipo | Descrição |
|---|---|---|
type |
string |
O tipo de conector do Gemini Enterprise como um identificador em letras minúsculas separado por hífen. |
version |
string |
A versão da definição do conector que foi usada para criar esta instância. |
state |
string |
O estado de provisionamento da instância do conector. |
instanceUri |
string |
O URL do site do cliente para conectores endereçados por locatário. |
tenantId |
string |
O identificador do locatário do cliente no serviço externo. |
skills |
array |
As revisões de habilidades do Agent Registry anexadas a um conector MCP personalizado, até cinco entradas. Omitido para outros conectores e para conectores MCP personalizados sem habilidades anexadas. |
skills.skill |
string |
O nome do recurso da habilidade, no formato
projects/PROJECT_NUMBER/locations/LOCATION/skills/SKILL. |
skills.skillUid |
string |
O identificador exclusivo (uid) da habilidade. |
skills.revision |
string |
O nome do recurso da revisão da habilidade, no formato
projects/PROJECT_NUMBER/locations/LOCATION/skills/SKILL/revisions/REVISION. |
skills.revisionUid |
string |
O identificador exclusivo (uid) da revisão da habilidade. |
skills.sha256 |
string |
O resumo SHA-256 do payload da revisão de habilidade como 64 caracteres hexadecimais em letras minúsculas. |