Extended metadata schemas

App Hub automatically adds extended metadata to some services and workloads to improve discoverability, governance, and integration with other systems. A unique key identifies each supported schema and defines the structure and fields for a specific type of metadata. To view this metadata, see View extended metadata schemas.

apphub.googleapis.com/AgentProperties

This schema is used to describe the properties of an AI agent, letting other systems find and understand it. It is typically applied to workloads that have a functional type property of AGENT. The schema is compatible with the Agent2Agent (A2A) Agent Card.

Schema definition

The following is the schema for this metadata type in JSON format.

{
  "$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"
            }
          }
        }
      }
    }
  }
}

Field descriptions

Field Type Description
displayName string The display name of the agent.
description string The description of the agent.
version string The version of the agent.
framework string The framework used to develop the agent.
agentCardUri string The URI of the agent card for the agent.
skills array A list of skills the agent possesses.
skills.id string A unique identifier for the agent's skill.
skills.name string A human readable name for the agent's skill.
skills.description string A description of the agent's skill.
skills.tags array of string A set of keywords describing the skill's capabilities.
skills.examples array of string Example prompts or scenarios that this skill can handle.

apphub.googleapis.com/McpServer

The apphub.googleapis.com/McpServer schema defines the properties of a Model Context Protocol (MCP) server and the tools that it exposes. App Hub applies this schema to services that have a functional type property of MCP_SERVER. The schema includes transport endpoint declarations and tool definitions that conform to the MCP specification, including behavioral hints in annotations and policy hints in _meta.

Schema definition

The following is the schema for this metadata type in JSON format.

{
  "$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"]
    }
  }
}

Field descriptions

Field Type Description
displayName string The display name of the MCP server.
description string The description of the MCP server.
interfaces array The connection details for the MCP server.
interfaces.url string The destination endpoint URL for the interface.
interfaces.protocolBinding string The protocol binding of the interface, for example, JSONRPC.
tools array Tools provided by the MCP server.
tools.name string Human-readable name of the tool.
tools.description string Description of what the tool does.
tools.annotations object Standard MCP annotations associated with the tool.
tools.annotations.title string A human-readable title for the tool.
tools.annotations.readOnlyHint boolean Hint indicating if the tool only retrieves data and doesn't modify its environment.
tools.annotations.destructiveHint boolean Hint indicating if the operation can cause destructive changes.
tools.annotations.idempotentHint boolean Hint indicating if the operation is idempotent and safe to retry.
tools.annotations.openWorldHint boolean Hint indicating if the operation interacts with external systems.
tools._meta object Protocol-level metadata conforming to the MCP _meta specification. Keys must follow reverse-domain notation.
tools._meta.com.googleapis.iap/PolicyHints object Identity-Aware Proxy (IAP) policy hints for the tool.
tools._meta.com.googleapis.iap/PolicyHints.authorization object Authorization and human-in-the-loop (HITL) configuration for the tool.
tools._meta.com.googleapis.iap/PolicyHints.authorization.toolDisabled boolean Indicates whether the tool is disabled for invocation. Set to true to disable the tool. Defaults to false when omitted, meaning the tool is enabled.
tools._meta.com.googleapis.iap/PolicyHints.authorization.hitlMode string Human-in-the-loop (HITL) execution mode. Supported values are HITL_MODE_UNSPECIFIED, HITL_MODE_DISABLED, HITL_MODE_ALWAYS, and HITL_MODE_IF_UNSAFE.

discoveryengine.googleapis.com/agentregistry/connector

The discoveryengine.googleapis.com/agentregistry/connector schema defines provider metadata for Gemini Enterprise data connectors. When you register an external Model Context Protocol (MCP) server through a Gemini Enterprise connector, App Hub attaches this extended metadata to the underlying service resource.

Agent Registry surfaces this metadata in the attributes map of the corresponding McpServer discovery resource so that client applications and orchestrator agents can inspect connector properties such as type, state, and instanceUri.

Schema definition

The following is the schema for this metadata type in JSON format.

{
  "$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"]
      }
    }
  }
}

Field descriptions

Field Type Description
type string The type of the Gemini Enterprise connector as a lowercase hyphen-separated identifier.
version string The version of the connector definition that this instance was created from.
state string The provisioning state of the connector instance.
instanceUri string The customer site URL for connectors addressed per tenant.
tenantId string The identifier of the customer tenant within the external service.
skills array The Agent Registry skill revisions attached to a custom MCP connector, up to five entries. Omitted for other connectors and for custom MCP connectors without attached skills.
skills.skill string The resource name of the skill, in the format projects/PROJECT_NUMBER/locations/LOCATION/skills/SKILL.
skills.skillUid string The unique identifier (uid) of the skill.
skills.revision string The resource name of the skill revision, in the format projects/PROJECT_NUMBER/locations/LOCATION/skills/SKILL/revisions/REVISION.
skills.revisionUid string The unique identifier (uid) of the skill revision.
skills.sha256 string The SHA-256 digest of the skill revision payload as 64 lowercase hexadecimal characters.