'Given a repository name and ownerof a repository whose type is
tool_dependency_definition, return the current metadata.'

@web.json
def get_tool_dependency_definition_metadata(self, trans, **kwd):

    repository_name = kwd['name']
    repository_owner = kwd['owner']
    repository = repository_util.get_repository_by_name_and_owner(trans.app, repository_name, repository_owner)
    encoded_id = trans.app.security.encode_id(repository.id)
    repository_tip = repository.tip(trans.app)
    repository_metadata = metadata_util.get_repository_metadata_by_changeset_revision(trans.app, encoded_id, repository_tip)
    return repository_metadata.metadata
