AgentRegistry / Client / search_discoverable_registry_records

search_discoverable_registry_records

AgentRegistry.Client.search_discoverable_registry_records(**kwargs)

Searches the discoverable registry records in a registry using a natural language query. Returns metadata for the matching records ordered by relevance.

See also: AWS API Documentation

Request Syntax

response = client.search_discoverable_registry_records(
    searchQuery='string',
    registryIds=[
        'string',
    ],
    maxResults=123,
    filters={...}|[...]|123|123.4|'string'|True|None
)
Parameters:
  • searchQuery (string) –

    [REQUIRED]

    The natural language query to search for matching registry records.

  • registryIds (list) –

    [REQUIRED]

    The registry identifiers to search within. Currently, you must specify exactly one registry identifier. You can provide either the full Amazon Web Services Resource Name (ARN) or the registry ID.

    • (string) –

      Registry identifier that accepts either ARN or ID format

  • maxResults (integer) – The maximum number of results to return. Valid values are 1 through 20. The default value is 10.

  • filters (document) – An optional structured JSON metadata filter that narrows the search results. Supports the field-level operators $eq, $ne, and $in, and the logical operators $and and $or on filterable fields.

Return type:

dict

Returns:

Response Syntax

{
    'registryRecords': [
        {
            'registryArn': 'string',
            'recordArn': 'string',
            'recordId': 'string',
            'name': 'string',
            'description': 'string',
            'displayName': 'string',
            'recordType': 'MCP'|'AGENT'|'CUSTOM'|'SKILL'|'GATEWAY',
            'descriptors': {
                'mcpServer': {
                    'data': 'string',
                    'dataSchemaVersion': 'string',
                    'additionalData': {
                        'tools': {
                            'data': 'string',
                            'dataSchemaVersion': 'string'
                        }
                    },
                    'source': {
                        'fromUrl': {
                            'url': 'string'
                        }
                    }
                },
                'a2aAgentCard': {
                    'data': 'string',
                    'dataSchemaVersion': 'string',
                    'source': {
                        'fromUrl': {
                            'url': 'string'
                        }
                    }
                },
                'agentSkillsDefinition': {
                    'data': 'string',
                    'dataSchemaVersion': 'string',
                    'additionalData': {
                        'skillMd': {
                            'data': 'string',
                            'dataSchemaVersion': 'string',
                            'source': {
                                'fromUrl': {
                                    'url': 'string'
                                }
                            }
                        }
                    }
                },
                'custom': {
                    'data': 'string'
                },
                'http': {
                    'source': {
                        'fromUrl': {
                            'url': 'string'
                        }
                    }
                },
                'agui': {
                    'source': {
                        'fromUrl': {
                            'url': 'string'
                        }
                    }
                }
            },
            'recordVersion': 'string',
            'status': 'DRAFT'|'PENDING_APPROVAL'|'APPROVED'|'REJECTED'|'DEPRECATED'|'CREATING'|'UPDATING'|'CREATE_FAILED'|'UPDATE_FAILED',
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1)
        },
    ]
}

Response Structure

  • (dict) –

    • registryRecords (list) –

      The registry records that match the search query, ordered by relevance.

      • (dict) –

        Summary information about a registry record, including its descriptors.

        • registryArn (string) –

          The Amazon Resource Name (ARN) of the parent registry that owns the record.

        • recordArn (string) –

          The Amazon Resource Name (ARN) of the registry record.

        • recordId (string) –

          The unique identifier of the registry record.

        • name (string) –

          The name of the registry record. Names are unique within a registry.

        • description (string) –

          A human-readable description of the registry record. Use this field to explain the record’s purpose or content to consumers discovering it in the registry.

        • displayName (string) –

          The human-readable display name of the registry record.

        • recordType (string) –

          The type of the registry record. MCP is a Model Context Protocol server record, AGENT is an Agent-to-Agent (A2A) agent card record, SKILL is an agent skills definition record, and CUSTOM is a record with a custom descriptor.

        • descriptors (dict) –

          The protocol-specific descriptors that describe how to connect to and use the record.

          • mcpServer (dict) –

            The MCP server descriptor, populated when the record type is MCP.

            • data (string) –

              The MCP server descriptor content, serialized as descriptor payload data.

            • dataSchemaVersion (string) –

              The schema version of the descriptor payload.

            • additionalData (dict) –

              Additional data associated with the MCP server descriptor, such as tool definitions.

              • tools (dict) –

                The MCP tools descriptor that defines the tools exposed by the MCP server.

                • data (string) –

                  The MCP tools descriptor content, serialized as descriptor payload data.

                • dataSchemaVersion (string) –

                  The schema version of the descriptor payload.

            • source (dict) –

              The source location from which the MCP (Model Context Protocol) server descriptor content was retrieved.

              • fromUrl (dict) –

                The URL-based descriptor source, populated when descriptor content is synchronized from a URL.

                • url (string) –

                  The URL from which the descriptor content is retrieved.

          • a2aAgentCard (dict) –

            The A2A agent card descriptor, populated when the record type is AGENT.

            • data (string) –

              The A2A agent card content, serialized as descriptor payload data.

            • dataSchemaVersion (string) –

              The schema version of the descriptor payload.

            • source (dict) –

              The source location from which the A2A (Agent-to-Agent) agent card descriptor content was retrieved.

              • fromUrl (dict) –

                The URL-based descriptor source, populated when descriptor content is synchronized from a URL.

                • url (string) –

                  The URL from which the descriptor content is retrieved.

          • agentSkillsDefinition (dict) –

            The agent skills definition descriptor, populated when the record type is SKILL.

            • data (string) –

              The agent skills definition content, serialized as descriptor payload data.

            • dataSchemaVersion (string) –

              The schema version of the descriptor payload.

            • additionalData (dict) –

              Additional data for the agent skills definition, such as the skills markdown descriptor.

              • skillMd (dict) –

                The agent skills markdown descriptor associated with the agent skills definition.

                • data (string) –

                  The agent skills markdown content, serialized as descriptor payload data.

                • dataSchemaVersion (string) –

                  The schema version of the descriptor payload.

                • source (dict) –

                  The source location from which the agent skills markdown content was retrieved.

                  • fromUrl (dict) –

                    The URL-based descriptor source, populated when descriptor content is synchronized from a URL.

                    • url (string) –

                      The URL from which the descriptor content is retrieved.

          • custom (dict) –

            The custom descriptor, populated when the record type is CUSTOM.

            • data (string) –

              The custom descriptor content, serialized as descriptor payload data.

          • http (dict) –

            The HTTP descriptor, populated when the record exposes an HTTP endpoint.

            • source (dict) –

              The source location of the HTTP endpoint.

              • fromUrl (dict) –

                The URL-based descriptor source, populated when descriptor content is synchronized from a URL.

                • url (string) –

                  The URL from which the descriptor content is retrieved.

          • agui (dict) –

            The AG-UI descriptor, populated when the record exposes an AG-UI protocol endpoint.

            • source (dict) –

              The source location of the AG-UI protocol endpoint.

              • fromUrl (dict) –

                The URL-based descriptor source, populated when descriptor content is synchronized from a URL.

                • url (string) –

                  The URL from which the descriptor content is retrieved.

        • recordVersion (string) –

          The version identifier of the registry record.

        • status (string) –

          The lifecycle status of the registry record. A record is DRAFT before it is submitted, PENDING_APPROVAL while awaiting curator review, and APPROVED once it is approved and discoverable. REJECTED and DEPRECATED records are not discoverable. The CREATING, UPDATING, CREATE_FAILED, and UPDATE_FAILED values reflect the state of an in-progress or failed asynchronous change.

        • createdAt (datetime) –

          The timestamp when the registry record was created.

        • updatedAt (datetime) –

          The timestamp when the registry record was last updated.

Exceptions